aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-12 13:56:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-12 13:57:16 +1200
commitae3cae3a612ddf1a74b4d82c1b2f0441b37b1b6a (patch)
tree5c54393d2b4e37d3bfa2d6cb08f7fa564a199517 /vim
parentMerge branch 'release/v1.27.0' into develop (diff)
downloaddotfiles-ae3cae3a612ddf1a74b4d82c1b2f0441b37b1b6a.tar.gz
dotfiles-ae3cae3a612ddf1a74b4d82c1b2f0441b37b1b6a.zip
Add ftplugin for tmux
Just with comment formatting rules--there's no stock ftplugin in Vim at the moment, just a syntax file.
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/tmux.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/ftplugin/tmux.vim b/vim/ftplugin/tmux.vim
new file mode 100644
index 00000000..ecbd3e85
--- /dev/null
+++ b/vim/ftplugin/tmux.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'