1 Mar 2008 04:03
Unable to get syntax highlighting to work for root account
YGirouard <web.account <at> black-lotus.net>
2008-03-01 03:03:11 GMT
2008-03-01 03:03:11 GMT
Problem description: Whenever I switch to the root account using "su - root", the syntax highlighting in vi stops working. It works fine when I'm using my own account since I added "syntax on" in the file ~/.vimrc, but I tried adding the same file to the /root directory and it's not doing anything for root. I also tried typing the "syntax on" in vi after launching it as root, and nothing happens. The command "echo $TERM" returns "xterm" as both root and my own account. I also tried to force "syntax on" in /etc/vimrc (adding it at the end, outside the IF block that usually sets it), and it does nothing. I compared the environment variables for both users (my own and root) and I can't see anything that would cause this... I restarted my server and still doesn't work... I'm out of things to look at and google isn't much of a friend this time... I managed to find ONE post from someone with the same problem, but nobody was able to provide him with a working solution... Additional info: ------------------------------------------------------------------------ SSH Client: Putty (in Windows Xp Pro) OS: Fedora Core 7 VIM Packages installed (obtained using command: yum list installed vim*): vim-common.i386, 2:7.1.211-1.fc7, installed vim-enhanced.i386, 2:7.1.211-1.fc7, installed vim-minimal.i386, 2:7.1.211-1.fc7, installed(Continue reading)
>
> ^] is the telnet escape character. If you're using telnet, you can
> change the escape character to something else or disable it
> entirely.
I haven't used telnet in years.
Maybe it's putty's fault, but maybe it's also a problem when you
login to some windows terminal servers[1] and then try to use
some keys...
[1] Remote access to work is sometimes done that way...
> HTH,
> Gary
Ciao,
Thomas
RSS Feed