aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-16 22:01:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-16 22:01:59 +1200
commit72973f7e88c53f6d12278f995dcb54071c896afa (patch)
tree43e9b64e9044321029498bd173d26681c10d312d
parentac660a89bd9a31033d2ac189a3aab9d44f9d4bb3 (diff)
downloaddotfiles-72973f7e88c53f6d12278f995dcb54071c896afa.tar.gz
Don't set vint compiler for commandline windows
-rw-r--r--vim/after/ftplugin/vim.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim
index 570a9443..46182627 100644
--- a/vim/after/ftplugin/vim.vim
+++ b/vim/after/ftplugin/vim.vim
@@ -4,9 +4,11 @@ if &filetype !=# 'vim' || v:version < 700 || &compatible
endif
" Use Vint as a syntax checker
-compiler vint
-let b:undo_ftplugin .= '|unlet b:current_compiler'
- \ . '|setlocal errorformat< makeprg<'
+if bufname('%') !=# 'command-line'
+ compiler vint
+ let b:undo_ftplugin .= '|unlet b:current_compiler'
+ \ . '|setlocal errorformat< makeprg<'
+endif
" Stop here if the user doesn't want ftplugin mappings
if exists('g:no_plugin_maps') || exists('g:no_vim_maps')