aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-10 13:19:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-10 13:19:12 +1200
commitc0b33da9bf4d47b01bf6a081f68dffc5497aa75f (patch)
treea925378754fae2a35613c864aa3be59a33c0e6a7 /vim/ftplugin
parent5cab92f941d31c588d1b8734f2e8e2b078603821 (diff)
downloaddotfiles-c0b33da9bf4d47b01bf6a081f68dffc5497aa75f.tar.gz
dotfiles-c0b33da9bf4d47b01bf6a081f68dffc5497aa75f.zip
Move after/ftplugin/sed.vim to ftplugin/sed.vim
Vim doesn't have a stock ftplugin for sed at all (just syntax), so this can be our base one.
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/sed.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/ftplugin/sed.vim b/vim/ftplugin/sed.vim
new file mode 100644
index 00000000..350bc976
--- /dev/null
+++ b/vim/ftplugin/sed.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<'