Wednesday, January 25, 2012

Re: Strange highlighting

Phil Dobbin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 25/01/2012 19:13, Phil Dobbin wrote:
>
>
>> I'm seeing a very odd& annoying highlighting anomaly.
>>
>> In certain files (& on occasion all files) certain words will be
>> highlighted in only orange& grey. These words seem to be totally
>> arbitrary. For example, in, say, my .bashrc the words `usr`,
>> `dropbox`& `storage1` will suffer. Or some single characters like
>> on my PS1 entry just the `d` `u`& `h` but not the `t` or `w`.
>>
>> This only happens on terminal vim on Linux& doesn't occur in gvim
>> on Linux or terminal vim/MacVim on OS X.
>>
>> I suspect it may have something to do with Gnome Terminal (it
>> happens in xterm& terminator too). The problem disappears when vim
>> is started -u NONE. My vimrc is identical on all my machines
>> (Debian Linux& Mac OS X).
>>
>
>
>
> As a follow up to this I've discovered the odd highlighting only
> occurs when passing an argument to Vim i.e `vim .bashrc`
>
> If I start Vim& then edit the same file all is OK.
>
Well, I was thinking that perhaps your termtype database was incorrect,
but that should affect :e .bashrc, too.

So, what's the filetype?

vim .bashrc
:echo &ft

Do files other than shell script files appear odd?

Does

vim -u NONE .bashrc
:set nocp
:syn on

have odd highlighting?

Regards,
C Campbell


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment