diff options
Diffstat (limited to 'vim/after/ftplugin/cpp.vim')
-rw-r--r-- | vim/after/ftplugin/cpp.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vim/after/ftplugin/cpp.vim b/vim/after/ftplugin/cpp.vim index 9a58cfa5..a826bf43 100644 --- a/vim/after/ftplugin/cpp.vim +++ b/vim/after/ftplugin/cpp.vim @@ -1,11 +1,9 @@ " Extra configuration for C++ files -if &filetype != 'cpp' || &compatible || v:version < 700 +if &filetype !=# 'cpp' || v:version < 700 finish endif " Set comment formats setlocal include=^\\s*#\\s*include setlocal path+=/usr/include -let b:undo_ftplugin = b:undo_ftplugin - \ . '|setlocal include<' - \ . '|setlocal path<' +let b:undo_ftplugin .= '|setlocal include< path<' |