You are not logged in.
Pages: 1
Hi everyone,
when I'm in X and use vim I can't get any colors with "syn on", I get highlighting but only bold and underline, still black & white. If I switch to a virtual terminal the colors show up.
Is this the case just on my machine? How to get colors?
Offline
I have the same problem on my machine. I use emacs though, so I never really bothered to mess with it.
"Contrary to popular belief, penguins are not the salvation of modern technology. Neither do they throw parties for the urban proletariat."
Offline
the term type ($TERM) xterm has no colours defined. Use xterm-color.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
that worked.
"Contrary to popular belief, penguins are not the salvation of modern technology. Neither do they throw parties for the urban proletariat."
Offline
Where do I set this to affect all users? Should I simply add line
export TERM="xterm-color"
to /etc/profile?
EDIT: just tried that, doesn't work, TERM is still xterm after reboot.
Offline
You have to set variable each time a terminal session is started.
I stuck it in ~/.zshrc, but that's only for my main user, not every one.
Try putting it in /etc/bashrc if you use BASH.
"Contrary to popular belief, penguins are not the salvation of modern technology. Neither do they throw parties for the urban proletariat."
Offline
No luck with /etc/bashrc, I'll just write it to ~/.bashrc, at least there it works ok.
Thanks for helping.
Offline
man bash
and search for the sections INVOCATION and FILES.
Also note, that when you start an xterm just by issung "xterm" (or a corresponding window manager entry). It is not a login shell. You have to start it with
xterm -ls
to get a login shell - if that is what you want.
Also, double check how your startup files call each other for your setup.
Offline
Pages: 1