From abcb1309ce915d1ff6ba6a0102395e66ee7b26b9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 24 Jul 2018 10:40:14 +0200 Subject: Add email autocmd for mutt Signed-off-by: Florian Pritz --- .vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.vimrc b/.vimrc index 981d36f..53b76c9 100644 --- a/.vimrc +++ b/.vimrc @@ -231,6 +231,12 @@ let g:UltiSnipsListSnippets="" 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 =(Ulti_ExpandOrJump_and_getRes() == 1)?"":"\n" autocmd BufRead,BufNewFile PKGBUILD let is_bash=1 | set ft=sh " move to first line in git commits -- cgit v1.2.3-24-g4f1b