<<< Date Index >>>     <<< Thread Index >>>

Re: vim and mutt [WAS: Re: Encoding Japanese Characters in a totally English environment]



Hello,

> Last but not least, become acquainted with your editor of choice.
> Vim[4] is your friend ;-)

true.

" mutt stuff ....
au VimEnter mutt* :call ComposeMessage()
au VimEnter .followup :call ComposeMessage()
au VimEnter .article :call ComposeMessage()

function! ComposeMessage()
set tw=72
set wrap
map <F9> :$r /home/cip/adm/sithglan/.signature-header<CR>:$r 
/home/cip/adm/sithglan/.signature<CR>
map <F3> :$r /home/cip/adm/sithglan/.signature-header<CR>:$r 
/home/cip/adm/sithglan/.signature.immd3<CR>
map <F4> :$r /home/cip/adm/sithglan/.signature-header<CR>:$r 
/home/cip/adm/sithglan/.signature.immd4<CR>
map <F8> :r /home/cip/adm/sithglan/.bankverbindung<CR>
iab cu Gruesse,<CR><TAB>Thomas
iab xmfg Mit freundlichen Gruessen,<CR><TAB><TAB><TAB>Thomas
iab xhello Sehr geehrte
iab xcu Greetings,<CR><TAB>Thomas
iab xhonestly Honestly,<CR><TAB>Thomas
iab xsincerely Sincerely,<CR><TAB>Thomas
iab xunfeignedly Unfeignedly,<CR><TAB>Thomas
iab overquota <esc>:r ~/.vim/templates/overquota<Cr>kdd11jo
iab sprechstunde <esc>:r ~/.vim/templates/sprechstunde<Cr>kdd
iab packageinstalled <esc>:r ~/.vim/templates/packageinstalled<Cr>kdd
" strip empty comment lines
:%s/^>\(>\|\s\)*$//e
" stip two empty lines
:%s/^$\n^$\n/\r/ge
endfunction

Honestly,
        Thomas