diff options
-rw-r--r-- | .vimrc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -231,6 +231,12 @@ let g:UltiSnipsListSnippets="<c-l>" let g:UltiSnipsUsePythonVersion=2 let g:UltiSnipsEditSplit="vertical" +let g:ulti_expand_or_jump_res = 0 "default value, just set once +function! Ulti_ExpandOrJump_and_getRes() + call UltiSnips#ExpandSnippetOrJump() + return g:ulti_expand_or_jump_res +endfunction + " tagbar let g:tagbar_left=1 let g:tagbar_autofocus=1 @@ -320,6 +326,7 @@ autocmd FileType python set ts=4 sw=4 softtabstop=4 et autocmd FileType make setlocal noexpandtab autocmd FileType text setlocal textwidth=78 autocmd FileType tex setlocal linebreak spell +autocmd FileType mail setlocal linebreak spell | inoremap <enter> <C-R>=(Ulti_ExpandOrJump_and_getRes() == 1)?"":"\n"<CR> autocmd BufRead,BufNewFile PKGBUILD let is_bash=1 | set ft=sh " move to first line in git commits |