Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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

Your Answer


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.