diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-16 22:01:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-16 22:01:59 +1200 |
commit | 72973f7e88c53f6d12278f995dcb54071c896afa (patch) | |
tree | 43e9b64e9044321029498bd173d26681c10d312d /vim/after/ftplugin/vim.vim | |
parent | Revert "Set gitconfig commit.verbose, clear com... (diff) | |
download | dotfiles-72973f7e88c53f6d12278f995dcb54071c896afa.tar.gz dotfiles-72973f7e88c53f6d12278f995dcb54071c896afa.zip |
Don't set vint compiler for commandline windows
Diffstat (limited to 'vim/after/ftplugin/vim.vim')
-rw-r--r-- | vim/after/ftplugin/vim.vim | 8 |
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') |