aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-09 03:08:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-09 03:08:24 +1200
commit9ede911cc92a224419e034b81e8c3abf4cdf9119 (patch)
treef4a901ee1494274f6d0269c33f96c9692f53864e /vim/after
parentce0673e08850785842b3caddd51382399768e8ed (diff)
downloaddotfiles-9ede911cc92a224419e034b81e8c3abf4cdf9119.tar.gz
dotfiles-9ede911cc92a224419e034b81e8c3abf4cdf9119.zip
Clear b:current_compiler on unload
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/html.vim1
-rw-r--r--vim/after/ftplugin/perl.vim1
-rw-r--r--vim/after/ftplugin/php.vim1
-rw-r--r--vim/after/ftplugin/sh.vim1
-rw-r--r--vim/after/ftplugin/vim.vim1
-rw-r--r--vim/after/ftplugin/zsh.vim1
6 files changed, 6 insertions, 0 deletions
diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim
index 3a08d110..d0625fb7 100644
--- a/vim/after/ftplugin/html.vim
+++ b/vim/after/ftplugin/html.vim
@@ -7,6 +7,7 @@ endif
compiler tidy
setlocal equalprg=tidy\ -quiet
let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|unlet b:current_compiler'
\ . '|setlocal equalprg<'
\ . '|setlocal errorformat<'
\ . '|setlocal makeprg<'
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim
index 564653d2..c17ebb56 100644
--- a/vim/after/ftplugin/perl.vim
+++ b/vim/after/ftplugin/perl.vim
@@ -7,6 +7,7 @@ endif
compiler perl
setlocal equalprg=perltidy
let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|unlet b:current_compiler'
\ . '|setlocal equalprg<'
\ . '|setlocal errorformat<'
\ . '|setlocal makeprg<'
diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim
index 1f40aba7..765c1fb9 100644
--- a/vim/after/ftplugin/php.vim
+++ b/vim/after/ftplugin/php.vim
@@ -6,6 +6,7 @@ endif
" Use PHP itself for syntax checking
compiler php
let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|unlet b:current_compiler'
\ . '|setlocal errorformat<'
\ . '|setlocal makeprg<'
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim
index 01505a88..5cafdd70 100644
--- a/vim/after/ftplugin/sh.vim
+++ b/vim/after/ftplugin/sh.vim
@@ -27,6 +27,7 @@ else
endif
execute 'compiler '.b:sh_check_compiler
let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|unlet b:current_compiler'
\ . '|unlet b:sh_check_compiler'
\ . '|setlocal errorformat<'
\ . '|setlocal makeprg<'
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim
index bd0a83ce..2d11b2d6 100644
--- a/vim/after/ftplugin/vim.vim
+++ b/vim/after/ftplugin/vim.vim
@@ -6,6 +6,7 @@ endif
" Use Vint as a syntax checker
compiler vint
let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|unlet b:current_compiler'
\ . '|setlocal errorformat<'
\ . '|setlocal makeprg<'
diff --git a/vim/after/ftplugin/zsh.vim b/vim/after/ftplugin/zsh.vim
index d5852e53..8a27846b 100644
--- a/vim/after/ftplugin/zsh.vim
+++ b/vim/after/ftplugin/zsh.vim
@@ -6,5 +6,6 @@ endif
" Use Z shell itself as a syntax checker
compiler zsh
let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|unlet b:current_compiler'
\ . '|setlocal errorformat<'
\ . '|setlocal makeprg<'