diff --git a/ftplugin/ott.vim b/ftplugin/ott.vim new file mode 100644 index 0000000..b519125 --- /dev/null +++ b/ftplugin/ott.vim @@ -0,0 +1,17 @@ +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal comments=:% + +setlocal commentstring=%\ %s + +setlocal formatoptions-=t formatoptions+=croql + +if !exists('b:undo_ftplugin') + let b:undo_ftplugin = '' +elseif b:undo_ftplugin !=# '' + let b:undo_ftplugin .= '|' +endif +let b:undo_ftplugin .= 'setlocal comments< commentstring< formatoptions<'