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.

My Vim editor version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:19:52)

When I open a file(shell script, etc) with it, all the text are on same color. It's not user friendly. How can I solved it?

I tried with adding syntax on in ~/.vimrc file. but no use. It says

E319: Sorry, the command is not available in this version: syntax on

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Try sudo apt-get install vim. By default Ubuntu comes with vim-minimal (which does not have syntax highlighting).

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.