aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-17 11:30:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-17 11:30:37 +1200
commita2f8dea21ad00790a39a47a58c183c4a4ba3f4a6 (patch)
treecc0af6196efd243a7027ed1bb1885ce24d461487 /vim
parentDon't quote first and last lines of range if blank (diff)
downloaddotfiles-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.
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/awk.vim9
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<'