Thursday, September 1, 2011

fancy stuff for vi

in vi, the default indent is 8, while in visual studio, it is 8, so how to change it to 4 from 8.
check out this website:

in vi:
:set tabstop=4

or change the file ~/.vimrc

I put set nu in the end of file, and now it will automatically show the line number.

No comments:

Post a Comment