vim and syntax on

Hi all,
I'm trying to understand how to restore syntax highlighting in vim on debian etch.

That's my vim version:
VIM - Vi IMproved 7.0 (2006 May 7, compiled Oct 9 2006 23:54:39)

I did:

cp /usr/share/vim/vimcurrent/vimrc_example.vim ~/.vimrc

When I start vim I have this error

Error detected while processing /home/damko/.vimrc:
line 47:
E319: Sorry, the command is not available in this version: syntax on
Press ENTER or type command to continue

I read doc. It says to give this command

:syntax enable

It doesn't work ... Really I can't understand the error. It seems that vim was compilex without the syntax option

Do you have the same problem ?

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Well, I was using Vim 7 without problems...

How did you get your Vim 7.0 package?
I got the source for vim website, and did just plain configure thingie and everything worked. And yes I usually copy vimrc file from /usr/share/vim directory to ~/.vimrc and add what i want.

Just a setting?

It's the common package for etch.
I have the same "problem" also in ubuntu and in any new version of the package from debian and / or ubuntu.
Well it's not at all a problem. It seems a feature. A new one .. but the same .. I can't understand how to get highligthment back. Following the manual gives no result.

Really strange ... probably it's just a setting.

May u put on pastebin you ~/.vimrc ?
I would apreciate a lot

thanks in advance
--
enjoy Dam

Hi, I don't know if this may

Hi, I don't know if this may help, but I have just installed kubuntu edgy and had the same problem with vim syntax, tryed to fix it editing the rc but it didn't work, in the end I checked the installed packages and though vim-common was installed, the actual vim package was not. As soon as i did install it i had no more trouble, the syntax on command worked perfectly. Hope this helps any of you.

Bbye.

great! it works

yes Puckaroo, you are right.
It was a stupid thing...
Simply I didn't install the package "vim"
...
so to solve the problem it's enought a

apt-get install -y vim

Thanks a lot for your help!
--
enjoy Dam

Syndicate content