syntax on in ubuntu vi editor 11.10

Asked by pramod

how to enable syntax on in vi editor of ubuntu 11.10

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu vim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) said :
#1

Hi pramod,

first of all you'll need to install vim (Vi-IMproved), and vim-scripts wont hurt too.

Then type in command mode:

      :set syntax on

If you want syntax hightlight enabled always add to your .vimrc:

syntax on

HTH

--
hmontoliu <at> ubuntu.com
http://hmontoliu.blogspot.com

Can you help with this problem?

Provide an answer of your own, or ask pramod for more information if necessary.

To post a message you must log in.