--- Thomas Michael Engelke <[EMAIL PROTECTED]> wrote: > 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 Mmm, in my Vim 6.4 it does not occur. Oh well, I switched back to 6.4 for the time being. Thank you for your reply.
John -- Sane sicut lux seipsam, & tenebras manifestat, sic veritas norma sui, & falsi est. -- Spinoza __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
