Vim setting

Once again this is for my sanity. When using vi, I kept finding myself doing Ctrl-G just to know where I am in a particular file, i.e. which line number. To display that all the time, place the following settings in your ~.vimrc file. set number set ruler “set number” will place a vertical column on the left to show the line numbers. “set ruler” will place a bottom row to show the current line number and row number, plus where you are in the edited file in percentage. Very handy. ...

June 6, 2011 · 1 min · birdchan

VIM settings

I found myself doing a lot of “:syntax on” when using vim. Then I was like, maybe I can add that to the setting file… So, it turns out it’s hecka simple. Just do the following: vi ~/.vimrc Then put in the line “syntax on” somewhere in the file. Then you are done! Next time when you open any source files, syntax will be turned on automatically! Apparently there are a lot more settings for you. Take a look at here. ...

January 28, 2011 · 1 min · birdchan