Browse More FAQs:

Ubuntu Linux Vim Sorry, the command is not available in this version: syntax on

Q. I am using vim under Ubuntu Linux and whenever I type following command:
syntax on

I’m getting an error which read as follows:
E319: Sorry, the command is not available in this version: syntax on

How do I fix this problem?

A. Vim is a text editor that is upwards compatible to Vi. It can be used to edit all kinds of plain text. It is especially useful for editing programs.

There are a lot of enhancements above Vi: multi level undo, multi windows and buffers, syntax highlighting, command line editing, filename completion, on-line help, visual selection, etc

Ubuntu Linux comes with tiny version of vim.

All you need to do is installed full vim version by typing following command:
$ sudo apt-get install vim

You can add syntax on command to ~/.vimrc file

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Linux / UNIX FAQ:

Discussion on This FAQ

  1. Brandon Says:

    Did you even read the question? The answer doesn’t address the question at all.

  2. BR Says:

    Actually answers the question.

    Ubuntu natively comes with tiny vim. This does not support syntax and other fancy stuff. So if you’ve just installed Ubuntu and run vim, you will get the error reported.

    In order to get syntax highlighting and other features, you must install the complete vim via apt-get.

  3. arachnid Says:

    Installing the full vim via apt-get doesn’t help at all. The problem stays as it is.

  4. Aia Says:

    Installing vim via apt-get solved the problem. Thank you.

  5. Ryan Says:

    Great post, solved my problem, thanks!

  6. Michael Says:

    Works perfectly - who would have thought - two vim packages.

  7. breno Leitao Says:

    you should be using vim-tiny that is the default package in Ubuntu.
    You should install a more bloated version. :-)

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

~ Last updated on: March 4, 2007

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.