UltisnipsEdit is now asking to select which file to edid instead of
going directly to where I want.
vnoremap <silent> gs :sort<cr>
" edit configs {{{2
vnoremap <silent> gs :sort<cr>
" edit configs {{{2
-function! EditConfig(what)
+function! EditConfig(what, ext = '.vim')
let l:dir = split(&runtimepath,',')[0]
if a:what == 'vimrc'
let l:file = expand($MYVIMRC)
let l:dir = split(&runtimepath,',')[0]
if a:what == 'vimrc'
let l:file = expand($MYVIMRC)
elseif empty(&filetype)
echoe 'filetype is empty!'
else
elseif empty(&filetype)
echoe 'filetype is empty!'
else
- let l:file = l:dir.'/'.a:what.'/'.&filetype.'.vim'
+ let l:file = l:dir.'/'.a:what.'/'.&filetype.a:ext
endif
execute ':vsplit '.file
endif
execute ':vsplit '.file
nmap <leader>ef :call EditConfig('ftplugin')<CR>
nmap <leader>es :call EditConfig('syntax')<CR>
nmap <leader>ei :call EditConfig('indent')<CR>
nmap <leader>ef :call EditConfig('ftplugin')<CR>
nmap <leader>es :call EditConfig('syntax')<CR>
nmap <leader>ei :call EditConfig('indent')<CR>
-nmap <leader>eu :UltiSnipsEdit<CR>:lcd %:p:h<CR>
+nmap <leader>eu :call EditConfig('ultisnips', '.snippets')<CR>
" spell check {{{2
" http://tex.stackexchange.com/a/52932
" spell check {{{2
" http://tex.stackexchange.com/a/52932