From ae3cae3a612ddf1a74b4d82c1b2f0441b37b1b6a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 12 Jul 2018 13:56:01 +1200 Subject: Add ftplugin for tmux Just with comment formatting rules--there's no stock ftplugin in Vim at the moment, just a syntax file. --- vim/ftplugin/tmux.vim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 vim/ftplugin/tmux.vim (limited to 'vim') 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' -- cgit v1.2.3