summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-07-24 10:40:14 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-07-24 10:40:14 +0200
commitabcb1309ce915d1ff6ba6a0102395e66ee7b26b9 (patch)
tree06b8725c234aa225e3d493e8041468924ca1e8ad
parentbc2bac14c4aac224b6659cf3688c0712e6890347 (diff)
downloaddotfiles-abcb1309ce915d1ff6ba6a0102395e66ee7b26b9.tar.gz
dotfiles-abcb1309ce915d1ff6ba6a0102395e66ee7b26b9.tar.xz
Add email autocmd for mutt
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--.vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 981d36f..53b76c9 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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