]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/ftdetect/mutt.vim
commentstring friendly "> " Mutt's quotes
[dotfiles.git] / vim / .vim / ftdetect / mutt.vim
index d106b42111c9e096aed707d317e6404979bbb05e..e7061746023a5970074fa63c07f2fed5fb8e38b1 100644 (file)
@@ -1,4 +1,4 @@
-function! s:KillSignature()
+function! s:KillSignature() abort
     call cursor(1, 1)
     call search('^[>|] \?-- \?$')
     if getpos(".")[1] != 1
@@ -8,3 +8,5 @@ endfunction
 
 autocmd BufRead /tmp/mutt-* call s:KillSignature()
 autocmd BufRead /tmp/mutt-* setlocal textwidth=72
+autocmd BufRead /tmp/mutt-* setlocal commentstring=>%s
+autocmd BufRead /tmp/mutt-* silent %substitute /^> */>/e | set nohlsearch