2011-03-27 08:09:12 +02:00
|
|
|
" Set some sane defaults for snippet files
|
|
|
|
|
|
|
|
" Fold by syntax, but open all folds by default
|
|
|
|
setlocal foldmethod=syntax
|
|
|
|
setlocal foldlevel=99
|
2012-08-20 13:24:17 -04:00
|
|
|
|
2013-01-26 08:29:37 -08:00
|
|
|
setlocal commentstring=#%s
|
|
|
|
|
2013-06-10 18:34:38 +02:00
|
|
|
setlocal noexpandtab
|
2014-06-30 21:17:52 -07:00
|
|
|
setlocal autoindent nosmartindent nocindent
|
2013-06-10 18:34:38 +02:00
|
|
|
|
2012-08-20 13:24:17 -04:00
|
|
|
" 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
|
2014-07-05 19:36:38 -07:00
|
|
|
|
|
|
|
" Add TagBar support
|
|
|
|
let g:tagbar_type_snippets = {
|
|
|
|
\ 'ctagstype': 'UltiSnips',
|
|
|
|
\ 'kinds': [
|
|
|
|
\ 's:snippets',
|
|
|
|
\ ],
|
|
|
|
\ 'deffile': expand('<sfile>:p:h:h') . '/ctags/UltiSnips.cnf',
|
|
|
|
\ }
|