vim without syntax highlighting
Hi,
I have vim 7.0-122+1. This version doesn't have syntax highlighting (when I try to enable it the program tells me that 'command is not available in thi version'). What should I do to enable it? What packages remove or install from my Linux? I use Debian etch. |
Quote:
There are lots of ways to turn it on including commands, but the easiest thing is probably to find the line in /usr/share/vim/vimrc that says " syntax on, and remove the comment symbol (") |
the command is ':syntax enable'. However I tried also ':syntax on'. In both cases I got the same response
|
type ':script' to see what all scripts it's loading, and then check any of those for anything odd.
Especially make sure that any needed dependencies are loaded. For example, the .vim files under .../syntax/ directory. As to which ones are needed for what, I couldn't really tell you. It seems like my vim has always loaded all the appropriate scripts, on it's own, just fine. Anyway, that gives you something to check out and investigate. If that doesn't help, then the next thing you could do is 'vim --version'. This will give alot of information about the modules and options your vim was compiled with. This may be a stupid question, but are you naming the file with the proper extension? AFAIK, vim doesn't know how to properly highlight, until the file being worked on, has a filename extension that it is familiar with. That is also providing that the necessary script(s) have been loaded up, which is one of the reasons I make mention of looking at the output of ':script'. |
Quote:
Code:
>$ cat .vimrc Code:
>$ COLUMNS=125 dpkg -l | grep vim |
I was sure that I installed the vim package because vim worked but I didn't. I didn't have vim and vim-scripts. Thanks a lot
|
All times are GMT -5. The time now is 08:35 PM. |