I was using Fedora for about six months, and recently switched to Ubuntu.
Here in Ubuntu, there is no code/syntax highlighting for groovy in Vi editor, which was actually there in Fedora Vi. How to enable that?
syntax highlightingvim
I was using Fedora for about six months, and recently switched to Ubuntu.
Here in Ubuntu, there is no code/syntax highlighting for groovy in Vi editor, which was actually there in Fedora Vi. How to enable that?
Best Answer
To enable syntax highlighting in vim you have to enable it through
.vimrc
.Add:
to your
.vimrc
.Here is the typical script for groovy. I do not know if it is compatible with vi or not because I am also novice to vi/vim. You can install the full vim with: