From 669b695d8f8663f4c1bc8514e0738e2963b66167 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 25 Jun 2018 09:00:52 +1200 Subject: Move all local bindings out into .vimrc This is the natural way of things, I think. --- vim/after/ftplugin/html/lint.vim | 9 --------- vim/after/ftplugin/html/tidy.vim | 9 --------- vim/after/ftplugin/perl/check.vim | 9 --------- vim/after/ftplugin/perl/lint.vim | 9 --------- vim/after/ftplugin/perl/tidy.vim | 9 --------- vim/after/ftplugin/php/check.vim | 9 --------- vim/after/ftplugin/sh/check.vim | 9 --------- vim/after/ftplugin/sh/lint.vim | 9 --------- vim/after/ftplugin/vim/lint.vim | 9 --------- vim/after/ftplugin/zsh/check.vim | 9 --------- 10 files changed, 90 deletions(-) (limited to 'vim/after/ftplugin') diff --git a/vim/after/ftplugin/html/lint.vim b/vim/after/ftplugin/html/lint.vim index 0b56e73c..9ab479c0 100644 --- a/vim/after/ftplugin/html/lint.vim +++ b/vim/after/ftplugin/html/lint.vim @@ -31,12 +31,3 @@ nnoremap \ :call compiler#Make('tidy') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap HtmlLint' - -" If there isn't a key mapping already, use a default one -if !hasmapto('HtmlLint') - nmap - \ l - \ HtmlLint - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap l' -endif diff --git a/vim/after/ftplugin/html/tidy.vim b/vim/after/ftplugin/html/tidy.vim index 3faefcb7..9331486b 100644 --- a/vim/after/ftplugin/html/tidy.vim +++ b/vim/after/ftplugin/html/tidy.vim @@ -31,12 +31,3 @@ nnoremap \ :call filter#Stable('tidy -quiet') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap HtmlTidy' - -" If there isn't a key mapping already, use a default one -if !hasmapto('HtmlTidy') - nmap - \ t - \ HtmlTidy - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap t' -endif diff --git a/vim/after/ftplugin/perl/check.vim b/vim/after/ftplugin/perl/check.vim index f6f99f08..c810c91f 100644 --- a/vim/after/ftplugin/perl/check.vim +++ b/vim/after/ftplugin/perl/check.vim @@ -26,12 +26,3 @@ nnoremap \ :call compiler#Make('perl') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap PerlCheck' - -" If there isn't a key mapping already, use a default one -if !hasmapto('PerlCheck') - nmap - \ c - \ PerlCheck - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap c' -endif diff --git a/vim/after/ftplugin/perl/lint.vim b/vim/after/ftplugin/perl/lint.vim index eaa6684c..86741f79 100644 --- a/vim/after/ftplugin/perl/lint.vim +++ b/vim/after/ftplugin/perl/lint.vim @@ -26,12 +26,3 @@ nnoremap \ :call compiler#Make('perlcritic') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap PerlLint' - -" If there isn't a key mapping already, use a default one -if !hasmapto('PerlLint') - nmap - \ l - \ PerlLint - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap l' -endif diff --git a/vim/after/ftplugin/perl/tidy.vim b/vim/after/ftplugin/perl/tidy.vim index 64f0eda2..c815aba9 100644 --- a/vim/after/ftplugin/perl/tidy.vim +++ b/vim/after/ftplugin/perl/tidy.vim @@ -26,12 +26,3 @@ nnoremap \ :call filter#Stable('perltidy') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap PerlTidy' - -" If there isn't a key mapping already, use a default one -if !hasmapto('PerlTidy') - nmap - \ t - \ PerlTidy - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap t' -endif diff --git a/vim/after/ftplugin/php/check.vim b/vim/after/ftplugin/php/check.vim index 9dc4c6a8..ea88d39b 100644 --- a/vim/after/ftplugin/php/check.vim +++ b/vim/after/ftplugin/php/check.vim @@ -26,12 +26,3 @@ nnoremap \ :call compiler#Make('php') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap PhpCheck' - -" If there isn't a key mapping already, use a default one -if !hasmapto('PhpCheck') - nmap - \ c - \ PhpCheck - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap c' -endif diff --git a/vim/after/ftplugin/sh/check.vim b/vim/after/ftplugin/sh/check.vim index 499926f3..48bb72d0 100644 --- a/vim/after/ftplugin/sh/check.vim +++ b/vim/after/ftplugin/sh/check.vim @@ -35,12 +35,3 @@ nnoremap \ :call compiler#Make(b:sh_check_compiler) let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap ShCheck' - -" If there isn't a key mapping already, use a default one -if !hasmapto('ShCheck') - nmap - \ c - \ ShCheck - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap c' -endif diff --git a/vim/after/ftplugin/sh/lint.vim b/vim/after/ftplugin/sh/lint.vim index 65fe003d..a24ba369 100644 --- a/vim/after/ftplugin/sh/lint.vim +++ b/vim/after/ftplugin/sh/lint.vim @@ -26,12 +26,3 @@ nnoremap \ :call compiler#Make('shellcheck') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap ShLint' - -" If there isn't a key mapping already, use a default one -if !hasmapto('ShLint') - nmap - \ l - \ ShLint - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap l' -endif diff --git a/vim/after/ftplugin/vim/lint.vim b/vim/after/ftplugin/vim/lint.vim index bd8c1da4..b71a7275 100644 --- a/vim/after/ftplugin/vim/lint.vim +++ b/vim/after/ftplugin/vim/lint.vim @@ -26,12 +26,3 @@ nnoremap \ :call compiler#Make('vint') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap VimLint' - -" If there isn't a key mapping already, use a default one -if !hasmapto('VimLint') - nmap - \ l - \ VimLint - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap l' -endif diff --git a/vim/after/ftplugin/zsh/check.vim b/vim/after/ftplugin/zsh/check.vim index 3e5ad7c6..a439ef8d 100644 --- a/vim/after/ftplugin/zsh/check.vim +++ b/vim/after/ftplugin/zsh/check.vim @@ -26,12 +26,3 @@ nnoremap \ :call compiler#Make('zsh') let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap ZshCheck' - -" If there isn't a key mapping already, use a default one -if !hasmapto('ZshCheck') - nmap - \ c - \ ZshCheck - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap c' -endif -- cgit v1.2.3 From f53b1edbdbe752a79f614bfd1010213715e35776 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 25 Jun 2018 09:04:46 +1200 Subject: Missed an ftplugin map: HTML URL linking --- vim/after/ftplugin/html/url_link.vim | 9 --------- 1 file changed, 9 deletions(-) (limited to 'vim/after/ftplugin') diff --git a/vim/after/ftplugin/html/url_link.vim b/vim/after/ftplugin/html/url_link.vim index 1cf57a7b..e7263e17 100644 --- a/vim/after/ftplugin/html/url_link.vim +++ b/vim/after/ftplugin/html/url_link.vim @@ -47,12 +47,3 @@ nnoremap \ :call HtmlUrlLink() let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap HtmlUrlLink' - -" If there isn't a key mapping already, use a default one -if !hasmapto('HtmlUrlLink') - nmap - \ r - \ HtmlUrlLink - let b:undo_ftplugin = b:undo_ftplugin - \ . '|nunmap r' -endif -- cgit v1.2.3