Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 05-16-2007, 07:03 AM   #1
Registered: Feb 2006
Posts: 34

Rep: Reputation: 15
Question how to use vim has color syntax on ubuntu

how to setup vim has color systax ?
Help me please
Old 05-16-2007, 08:10 AM   #2
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Whilst in vim, use :syntax enable

To make it default, add the line "syntax enable" to your .vimrc file
Old 09-08-2007, 12:28 AM   #3
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
That doesn't work in Ubuntu Feisty:
kornerr@koren:~$ vim a
Error detected while processing /home/kornerr/.vimrc:
line   60:
E319: Sorry, the command is not available in this version:   syntax on
The 60th line is, no wonder:
syntax on
So anybody can tell me what the hell is going on? It worked perfectly on Slackware.
Old 09-08-2007, 08:42 AM   #4
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
apt-get install vim
(or vim-full), and replace the vim-tiny that it shipped with?
Old 09-08-2007, 05:17 PM   #5
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Try "syntax enable" rather than "syntax on" - as in the above post..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get coloured syntax in ViM? impulse() Linux - Software 2 09-26-2006 10:56 PM
Unable to set syntax color on for VIM 6.3 that came with Fedora 4 d2army Linux - Newbie 3 02-16-2006 01:52 PM
How to enable color syntax when I start vim? ArthurHuang SUSE / openSUSE 5 01-27-2006 12:10 AM
VIM Color Syntax Highliting bsg Linux - Newbie 5 10-07-2005 09:31 PM
Vim syntax highlighting NSKL Linux - Software 2 11-09-2002 03:39 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration