LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-16-2007, 06:03 AM   #1
pk_kala
Member
 
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, 07:10 AM   #2
oneandoneis2
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-07-2007, 11:28 PM   #3
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
That doesn't work in Ubuntu Feisty:
Code:
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:
Code:
syntax on
So anybody can tell me what the hell is going on? It worked perfectly on Slackware.
Thanks.
 
Old 09-08-2007, 07:42 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Try
Code:
apt-get install vim
(or vim-full), and replace the vim-tiny that it shipped with?
 
Old 09-08-2007, 04:17 PM   #5
oneandoneis2
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..
 
  


Reply



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 09:56 PM
Unable to set syntax color on for VIM 6.3 that came with Fedora 4 d2army Linux - Newbie 3 02-16-2006 12:52 PM
How to enable color syntax when I start vim? ArthurHuang SUSE / openSUSE 5 01-26-2006 11:10 PM
VIM Color Syntax Highliting bsg Linux - Newbie 5 10-07-2005 08:31 PM
Vim syntax highlighting NSKL Linux - Software 2 11-09-2002 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:41 PM.

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