Tony Mechelynck wrote:
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.
What colorscheme are you using as root, and is it the same as the normal
user one? (:colors) . On some systems Ansi escape sequences with the
"1" specification means bold some color (I'm thinking about some SGIs I
used to use which rendered <esc>[1;32m, which should be a bright green,
as bright yellow; in fact, no matter what the 3x color, they always
showed bright yellow with that "1"). On other systems that "1" is
needed to make ansi escapes reasonably legible (here I'm thinking of
some Windows boxes).
Regards,
Chip 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