From a2f8dea21ad00790a39a47a58c183c4a4ba3f4a6 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 17 Jul 2018 11:30:37 +1200 Subject: 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. --- vim/ftplugin/awk.vim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 vim/ftplugin/awk.vim (limited to 'vim/ftplugin') 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<' -- cgit v1.2.3