diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-30 01:00:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-30 01:00:26 +1200 |
commit | 85279d055ad6131eafadbecd2108f0042920b698 (patch) | |
tree | 0bc85ec00d571c03dc5438381ce278672060e670 /vim/after/ftplugin/cpp.vim | |
parent | Join some b:undo_ftplugin addenda (diff) | |
download | dotfiles-85279d055ad6131eafadbecd2108f0042920b698.tar.gz dotfiles-85279d055ad6131eafadbecd2108f0042920b698.zip |
Conform all after/ftplugin files
Diffstat (limited to 'vim/after/ftplugin/cpp.vim')
-rw-r--r-- | vim/after/ftplugin/cpp.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/after/ftplugin/cpp.vim b/vim/after/ftplugin/cpp.vim index f75a0eda..1c834200 100644 --- a/vim/after/ftplugin/cpp.vim +++ b/vim/after/ftplugin/cpp.vim @@ -1,10 +1,13 @@ " Extra configuration for 'cpp' filetypes -if &compatible || v:version < 700 || exists('b:did_ftplugin_cpp') +if &compatible || v:version < 700 || exists('b:did_ftplugin_after') finish endif -let b:did_ftplugin_cpp = 1 +if &filetype !=# 'cpp' + finish +endif +let b:did_ftplugin_after = 1 let b:undo_ftplugin = b:undo_ftplugin - \ . '|unlet b:did_ftplugin_cpp' + \ . '|unlet b:did_ftplugin_after' " Set comment formats setlocal include=^\\s*#\\s*include |