From: Simon Ruderich Date: Mon, 13 Sep 2010 15:33:28 +0000 (+0200) Subject: Merge remote branch 'rammstein/master' X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=f6eefdd7a7a55b306c8c5d0c912609e942acd63d;hp=4f5d6b5591ec3cf2632f88c2e845ca7bf787cd6d;p=config%2Fdotfiles.git Merge remote branch 'rammstein/master' --- diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 3005e25..2dc85d8 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -1,7 +1,6 @@ " Vim filetype plugin file " Language: Mail " Maintainer: Simon Ruderich -" Last Change: 2008-12-07 " Use only 65 characters per line as given in rfc1855. @@ -13,7 +12,15 @@ silent! %s/\(^\([a-zA-z-]\+:\|--\)\)\@ > to >>). silent! %s/^\(>\+\) >/\1>/g silent! %s/^\(>\+\) >/\1>/g +silent! %s/^\(>\+\) >/\1>/g " Move directly after the headers. normal gg normal } + +" Fold quotes. Thanks to Teemu Likonen +" (http://permalink.gmane.org/gmane.editors.vim.devel/20890, +" <20080809190407.GA7584@mithlond.arda.local>) and danielsh_ in #mutt on +" Freenode (2010-07-10 13:01) for letting me know. +setlocal foldmethod=expr foldminlines=2 +setlocal foldexpr=strlen(substitute(substitute(getline(v:lnum),'\\s','','g'),'[^>].*','','')) diff --git a/vimrc b/vimrc index d0371b5..b0665ef 100644 --- a/vimrc +++ b/vimrc @@ -209,6 +209,11 @@ cnoremap nnoremap nnoremap - +" Go to next and previous buffer. Thanks to elik in #vim on Freenode +" (2010-05-16 18:38) for this idea. +nnoremap gb :bnext +nnoremap gB :bprev + " Fast access to buffers. nnoremap 1 :1b nnoremap 2 :2b