aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/tmux.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin/tmux.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'