2006/4/6, John Degen <[EMAIL PROTECTED]>:
>
>
> --- Benji Fisher <[EMAIL PROTECTED]> wrote:
>
> > On Tue, Apr 04, 2006 at 05:08:26AM -0700, John Degen
> > wrote:
> > > Hi all,
> > >
> > > I use a mapping to change buffers :ima <Esc>:b
> > > C:\dir\path\file.txt<CR> and a similar one to
> > return
> > > to the first buffer. When I use this syntax
> > > highlighting disappears in the first buffer. :set
> > > syntax? shows the syntax is still set correctly.
> > Doing
> > > :set syntax=mysyntax restores it. How can I keep
> > the
> > > highlighting? I did not have this problem in Vim
> > 6.3
> > > or 6.4.
> > >
> > > Thanks for any help,
> > > John
> >
> >      Please be more clear about what mapping you
> > use.  I tried
> >
> > :imap <F3> <Esc>:e#<CR>
> >
> > on Linux with vim 7.0c03 and did not see the problem
> > you describe.
> > Also, are you sure that the mapping matters?  What
> > happens if you type
> > directly whatever the mapping does?
> >
> > HTH                                   --Benji Fisher
> >
>
> I use a mapping to switch buffers, but I realize it is
> not pertinent to my problem. The highlighting
> disappears when I switch from buffer A to B and then
> back to A. As I said, the syntax is still set
> correctly, only not visible.

I had (and am still able to replicate) that problem with vim 6.4. It
always happened when I opened a new buffer and closed it again,
returning to the previous buffer. I checked syntax, but it was still
set correctly. Nevertheless, setting syntax again fixed the problem.

(WinXP, gvim 6.4.)

Regards,

Thomas Engelke
--
GPG-Key: tengelke.de/thomas_michael_engelke.asc

Reply via email to