web.onassar.com Archive

I can be reached at onassar@gmail.com.

For my open source work, check out github.com/onassar

Getting VIM to show the line numbers be default (in OSX and Ubuntu 10.10)

View more posts

I always want to see the line-numbers when editing something from VIM, and don't like having to type :set number each time; thus..

In OSX, edit the vim config file located at:


Add the following at the end of the file:

" Custom Config Options
set number

That's it. For Ubuntu 10.10 (Maverick Meerkat), the file is located at:


Same deal there. Hope that saves someone some time.