Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i was using Fedora for about six months. Recently I have been changed to Ubuntu. And here in Ubuntu, there is no Code/Synatax for groovy in VI editor,which was actually there in Fedora VI. How to enable that?

share|improve this question
    
thank for your reply :) –  Ant's Mar 18 '11 at 15:36
add comment

2 Answers 2

up vote 1 down vote accepted

to enable syntax highlighting in vim you have to enable it thrugh vimrc. add

syntax on

to your vimrc. here is the typical script for groovy. I donot know if it is compatible with vi or not because I am also novice to vi/vim. You can install the full vim with

sudo apt-get install vim

share|improve this answer
add comment

or in vim editor type:

:syn on

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.