Monday, April 25, 2011

Re: syntax highlighting colors bold text

On 25/04/11 14:25, Michael Hauser wrote:
> Hi
>
> I've a user and root account on my system. The .vimrc file is identical.
> Using urxvt/screen, when I open e.g.:
>
> /home/mih/$ vim .zshrc
>
> as normal user all colored (syntax highlighted) text is rendered in
> bold style, which is ugly.
> When I sudo:
>
> /home/mih/$ sudo vim .zshrc
>
> everything looks as expected. Also works, when I create a new user on my system.
>
> I think it must be some environment variable; has anybody run into
> this/a similar problem and can point me in the proper direction?
>
> Thank's in advance, mih
>

Try the following immediately after Vim startup, both in Vim in the root
account (with normal colours) and in Vim in the user account (with bold
colours) (the :help command is so we get something to highlight, and the
!chmod line, to make the file readable by all, assumes GNU chmod):

:help
:let save_more = &more
:set nomore
:redir! > ~/highlights.txt
:verbose hi
:redir END
:!chmod -c a+r ~/highlights.txt
:let &more = save_more
:unlet save_more

Then compare /root/highlights.txt with ~mih/highlights.txt -- by
eyeball, or using "diff -c /root/highlights.txt ~mih/highlights.txt"
(without the quotes), or both.

If there are no differences, then Vim is not the culprit -- but maybe
your X11 or terminal configuration is.


Best regards,
Tony.
--
Booze is the answer. I don't remember the question.

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