diff options
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r-- | vim/after/ftplugin/sh/comments.vim | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/vim/after/ftplugin/sh/comments.vim b/vim/after/ftplugin/sh/comments.vim index 0cb671e5..247fa2b0 100644 --- a/vim/after/ftplugin/sh/comments.vim +++ b/vim/after/ftplugin/sh/comments.vim @@ -1,4 +1,4 @@ -" sh/format.vim: Set 'comments' and 'formatoptions' +" sh/comments.vim: Set 'comments' for shell script " Don't load if running compatible or too old if &compatible || v:version < 700 @@ -6,17 +6,16 @@ if &compatible || v:version < 700 endif " Don't load if already loaded -if exists('b:did_ftplugin_sh_format') +if exists('b:did_ftplugin_sh_comments') finish endif " Flag as loaded -let b:did_ftplugin_sh_format = 1 +let b:did_ftplugin_sh_comments = 1 let b:undo_ftplugin = b:undo_ftplugin - \ . '|unlet b:did_ftplugin_sh_format' + \ . '|unlet b:did_ftplugin_sh_comments' " Use trailing whitespace to denote continued paragraph setlocal comments=:# -setlocal formatoptions-=t formatoptions+=cloqr let b:undo_ftplugin = b:undo_ftplugin - \ . '|setlocal comments< formatoptions<' + \ . '|setlocal comments<' |