diff options
Diffstat (limited to 'vim/after/ftplugin/awk')
-rw-r--r-- | vim/after/ftplugin/awk/comments.vim | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/vim/after/ftplugin/awk/comments.vim b/vim/after/ftplugin/awk/comments.vim index 5f91bef2..caf11679 100644 --- a/vim/after/ftplugin/awk/comments.vim +++ b/vim/after/ftplugin/awk/comments.vim @@ -1,4 +1,4 @@ -" awk/comments.vim: Set 'comments' for AWK +" awk/comments.vim: Set 'comments' and supporting 'formatoptions' for AWK " Don't load if running compatible or too old if &compatible || v:version < 700 @@ -6,16 +6,17 @@ if &compatible || v:version < 700 endif " Don't load if already loaded -if exists('b:did_ftplugin_awk_format') +if exists('b:did_ftplugin_awk_comments') finish endif " Flag as loaded -let b:did_ftplugin_awk_format = 1 +let b:did_ftplugin_awk_comments = 1 let b:undo_ftplugin = b:undo_ftplugin - \ . '|unlet b:did_ftplugin_awk_format' + \ . '|unlet b:did_ftplugin_awk_comments' -" Use trailing whitespace to denote continued paragraph +" Set comment formats setlocal comments=:# +setlocal formatoptions+=or let b:undo_ftplugin = b:undo_ftplugin - \ . '|setlocal comments<' + \ . '|setlocal comments< formatoptions<' |