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
Post Reply
Level 1
Level 1
Posts: 1
Joined: Wed May 09, 2007 11:53 am

VIM and Syntax

Post by 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! :)

Level 8
Level 8
Posts: 2277
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Re: VIM and Syntax

Post by 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
Level 7
Level 7
Posts: 1634
Joined: Mon Mar 26, 2007 7:48 am

Post by Boo » Thu May 10, 2007 12:28 am

I love vi!

and vim!

Now where was i going? Oh yes, crazy!

Post Reply

Return to “Other topics”