On Thu, Dec 27, 2001 at 08:29:00AM -0500, Philip Mak wrote:
> On Thu, 27 Dec 2001, [iso-8859-1] René Clerc wrote:
> 
> > * Skylar Thompson <[EMAIL PROTECTED]> [27-12-2001 14:10]:
> >
> > | (1) Vim no longer does syntax highlighting. It isn't major, but it did look
> > | nice.
> >
> > set editor="vim -u ~/.muttvimrc +/^$"
> 
> It looks like you're using the code that I posted to this mailing list
> recently for better paragraph formatting (I recognize that "set editor"
> line). I'm guessing maybe something in my code is causing your syntax
> hilighting to be turned off. When you specify "-u ~/.muttvimrc", that
> *overrides* your normal vim settings.
> 
> > Cool, but you didn't attache the ~/.muttvimrc. You could post that.
> 
> Here's what he probably has in his .muttvimrc, assuming he just took what
> I posted:
> 
> function! PrevPara()
>   if !search("^[> ]*$", 'bW')
>     1
>   endif
> endfunction
> 
> function! NextPara()
>   if !search("^[> ]*$", 'W')
>     $
>     normal $
>   endif
> endfunction
> 
> set bs=indent,eol,start
> set formatoptions=tcqv
> set comments=nb:>
> set tw=75
> set cpo-=<
> map { :call PrevPara()<ENTER>
> map } :call NextPara()<ENTER>
> map <C-J> {gq}j
> imap <C-J> <ESC>{gq}j
> 

To enable syntax colouring he needs a 'syntax on' command in there. I
believe its off by default, but turned on in the sample ~/.vimrc.

This is what I use for colouring:

if &t_Co > 2 || has("gui_running")
  syntax on
  set background=dark
  set hlsearch
endif

-- 
Benjamin Smith <[EMAIL PROTECTED], [EMAIL PROTECTED]>

Attachment: msg21939/pgp00000.pgp
Description: PGP signature

Reply via email to