diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-17 11:30:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-17 11:30:37 +1200 |
commit | a2f8dea21ad00790a39a47a58c183c4a4ba3f4a6 (patch) | |
tree | cc0af6196efd243a7027ed1bb1885ce24d461487 | |
parent | Don't quote first and last lines of range if blank (diff) | |
download | dotfiles-a2f8dea21ad00790a39a47a58c183c4a4ba3f4a6.tar.gz dotfiles-a2f8dea21ad00790a39a47a58c183c4a4ba3f4a6.zip |
Add my own ftplugin for awk
An official one only got added in early 2016, and it does almost
nothing; may as well implement my own instead.
-rw-r--r-- | vim/ftplugin/awk.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/ftplugin/awk.vim b/vim/ftplugin/awk.vim new file mode 100644 index 00000000..350bc976 --- /dev/null +++ b/vim/ftplugin/awk.vim @@ -0,0 +1,9 @@ +" Only do this when not yet done for this buffer +if exists('b:did_ftplugin') + finish +endif + +" Set comment formats +setlocal comments=:# +setlocal formatoptions+=or +let b:undo_ftplugin = 'setlocal comments< formatoptions<' |