Thursday, February 23, 2012

Re: Strange highlighting [SOLVED]

-----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.

[snip]

Just a quick follow up to this post in case somebody has the same
problem one day...

After removing plugins,etc, re-creating the same Vim configuration on a
VPS & installing on different OSs, it was down to the fact that these
"strange highlights" were Vim's spell checker on just one machine (face
palm). Didn't spot it because the spell checker thought `autocmd` was OK
but not the `u` in `\u@\h:\w` (it also complained about `etc` only when
it was commented out).

Only reason I found out was due to my habit of practising navigating
through files full of code as if I was going to correct the spelling
misatkes & I actually did hit `zg`.

We live & learn.


Cheers,

Phil...

- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEbBAEBAgAGBQJPRuxrAAoJEKpMeDHWT5ADfJgH9Rf5ElKU2IAUPbsAHUZ51QYJ
PmvxxzQ7rD3MQdC3hVjyPkp/+hLmmxHJOEG0UtIZDPCZSGtCn8erT5BdSFLGDJOX
pcFBE8wlPBE6NrlUXgU9ETGrOR5hyyog9sc8NAuy2Q5x6oeoGt5ar5TKbtfgOfxa
Dm6HBktmyXyBVnwzon5CDL67LGfYUte6BRKK6eogwHaD5ITE4E+Fzhl1Lc2Uy37J
/tEFFx3BCGzzmogLlx322X6Icy+hlgVg6rKB+mP78FLreroz0gEZsl388UD8LzgT
mf5e0mOA7s+VkEOR2JMXtcx24HRqvj4UQkaxt45xXdcDX6sHPzYdaxHEG+xyqQ==
=tmnb
-----END PGP SIGNATURE-----

--
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