Enabling syntax highlighting in Vim OSX.

Very shortly:

$ cd             # go in your home folder
$ vim  .vimrc    # edit your preferences for vim

...add following line at the end of the file and save:

syntax on

...if still it doesn't work add also this line:

set term=ansi

Now vim should support color schemes when editing files.


One Response to “Enabling syntax highlighting in Vim OSX.”  

  1. 1 Antonio

    Or you can try http://code.google.com/p/macvim/ macvim, it’s pretty nice :-)

Leave a Reply

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



Calendar

May 2009
M T W T F S S
« Apr   Jun »
 123
45678910
11121314151617
18192021222324
25262728293031

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening