UltiSnips/ftplugin/snippets.vim
Mike Morearty c8d1971c4b Set comment string to #%s
This allows the TPope's vim-commentary plugin to work with .snippet
files; e.g. typing "\\\" will comment out the current line with "# ".
2013-01-26 08:29:37 -08:00

15 lines
441 B
VimL

" Set some sane defaults for snippet files
" Fold by syntax, but open all folds by default
setlocal foldmethod=syntax
setlocal foldlevel=99
setlocal commentstring=#%s
" Define match words for use with matchit plugin
" http://www.vim.org/scripts/script.php?script_id=39
if exists("loaded_matchit") && !exists("b:match_words")
let b:match_ignorecase = 0
let b:match_words = '^snippet\>:^endsnippet\>,^global\>:^endglobal\>,\${:}'
endif