aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:00:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:00:26 +1200
commit85279d055ad6131eafadbecd2108f0042920b698 (patch)
tree0bc85ec00d571c03dc5438381ce278672060e670 /vim/after
parentd18886688821e5d67c3f698cebd1f31da1c253fc (diff)
downloaddotfiles-85279d055ad6131eafadbecd2108f0042920b698.tar.gz
dotfiles-85279d055ad6131eafadbecd2108f0042920b698.zip
Conform all after/ftplugin files
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/c.vim9
-rw-r--r--vim/after/ftplugin/cpp.vim9
-rw-r--r--vim/after/ftplugin/gitcommit.vim9
3 files changed, 18 insertions, 9 deletions
diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim
index a4c4cb6a..8ddea387 100644
--- a/vim/after/ftplugin/c.vim
+++ b/vim/after/ftplugin/c.vim
@@ -1,10 +1,13 @@
" Extra configuration for 'c' filetypes
-if &compatible || v:version < 700 || exists('b:did_ftplugin_c')
+if &compatible || v:version < 700 || exists('b:did_ftplugin_after')
finish
endif
-let b:did_ftplugin_c = 1
+if &filetype !=# 'c'
+ finish
+endif
+let b:did_ftplugin_after = 1
let b:undo_ftplugin = b:undo_ftplugin
- \ . '|unlet b:did_ftplugin_c'
+ \ . '|unlet b:did_ftplugin_after'
" Set comment formats
setlocal include=^\\s*#\\s*include
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
diff --git a/vim/after/ftplugin/gitcommit.vim b/vim/after/ftplugin/gitcommit.vim
index d64c7f6e..b53854be 100644
--- a/vim/after/ftplugin/gitcommit.vim
+++ b/vim/after/ftplugin/gitcommit.vim
@@ -1,10 +1,13 @@
" Extra configuration for 'gitcommit' filetypes
-if &compatible || v:version < 700 || exists('b:did_ftplugin_gitcommit')
+if &compatible || v:version < 700 || exists('b:did_ftplugin_after')
finish
endif
-let b:did_ftplugin_gitcommit = 1
+if &filetype !=# 'gitcommit'
+ finish
+endif
+let b:did_ftplugin_after = 1
let b:undo_ftplugin = b:undo_ftplugin
- \ . '|unlet b:did_ftplugin_gitcommit'
+ \ . '|unlet b:did_ftplugin_after'
" Make angle brackets behave like mail quotes
setlocal comments+=n:>