VIM and Syntax

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
pinger
Level 1
Level 1
Posts: 1
Joined: Wed May 09, 2007 11:53 am

VIM and Syntax

Postby pinger » Wed May 09, 2007 11:56 am

New install of Mint, when opening files in vi, I cannot enable the syntax option. Error:

Code: Select all

E319: Sorry, the command is not available in this version


The problem that I also have is that this machine does NOT have network connectivity. I do have access to the internet on another machine and can download any packages from the ubuntu repo that I need. Which packages do I need?

UPDATE: Nevermind. It needs vim (not tiny or common) and vim-runtime. Works! :)

User avatar
scorp123
Level 8
Level 8
Posts: 2264
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Re: VIM and Syntax

Postby scorp123 » Wed May 09, 2007 4:22 pm

pinger wrote:New install of Mint, when opening files in vi, I cannot enable the syntax option.
I see you found the solution yourself :wink: Yes, you need the full vim installation.

If you want the syntax highlighting to be always on by default you can modify the main config file:

Code: Select all

KDE: sudo kate /etc/vimrc
GNOME: sudo gedit /etc/vimrc
vi: vim /etc/vimrc

Add or edit this line so that it looks like this:

Code: Select all

...
syntax on
...
If you knew all of this already ... Oh well. Someone else will hopefully appreciate this info :wink:

User avatar
Boo
Level 8
Level 8
Posts: 2363
Joined: Mon Mar 26, 2007 7:48 am

Postby Boo » Thu May 10, 2007 12:28 am

I love vi!

and vim!

:D
Image
Now where was i going? Oh yes, crazy!


Return to “Other topics”

Who is online

Users browsing this forum: No registered users and 2 guests