[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mutt & vim



Hi Dave Swegen; unless Mutt is confused, you wrote:
> I have a couple of questions regarding the configuration of mutt and vim:
> 
> 1) How do I go about assigning different settings for vim, ie having 
> textwidth when composing mail with mutt, but not when coding?
> 
> 2) Where do I change the syntax-highlighting colours in such a way that they
> won't be affected by the next upgrade to vim (the default colours for some 
> apps is a bit dodgy - dark blue on black for instance)?
> 
> Cheers
> 	Dave

I have picked up someplace (may even be in vim docs) the following settings
which I placed in my ~/.gvimrc file:

augroup Messages " Mail & news
  autocmd!
  autocmd BufRead mutt*[0-9],snd.*,.letter,.followup,.article,.article[0-9] 
  set textwidth=76 formatoptions=2tcq comments=n:>,n::,n:#,n:%,n:\| digraph
  normal ,kqs

For the above to  work I have vim-rt package installed and my ~/.vimrc file
allows for autocmd feature.
I am afraid I can't help you with the 2nd question, maybe ~/.vimrc is the
place to put your defaults?

HTH,
damir


Reply to: