LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 07: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, 08: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-08-2007, 12:28 AM   #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, 08: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, 05: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


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

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

All times are GMT -5. The time now is 04:58 AM.

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