By default Ubuntu’s vim utility is configured to color code certain keywords, comments, extensions, etc.

I personally do not like this. So I just disable that feature. And while I am at it, I also enable the ruler, which displays the line number and the character position of the cursor.

To do that for all users, edit the /etc/vim/vimrc file add the following lines to it:

syntax off		" Clear any font/color/hilighting
set ruler		" Enable the ruler

If you want to do that just for a particular user, create a .vimrc file in that user’s home directory (if it does not already exist) and add the same lines to it.

Remove vim color coding in Ubuntu

One thought on “Remove vim color coding in Ubuntu

  • January 9, 2012 at 9:30 am
    Permalink

    Thanks for this! I find it annoying when you pull up vm, and the color choice for some of the words is dark blue – against a black background? really?

Leave a Reply

Your email address will not be published. Required fields are marked *

*