vim – quick tips

1. Other than using ‘w’ or ‘b’ to navigate between words, another quick way to navigate between sentences is to use the ‘(‘ and ‘)’ keys.

2. to show special characters, “:set list”

3. to show line numbers, “:set number”

4. do not convert tab to space, “:set noexpandtab”

5. convert spaces to tab, “:retab”

6. when pasting and not wanting autoindent, “:set paste” allows pasting into the editor correctly. “:set nopaste” will retrigger autoindent.

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.

One thought on “vim – quick tips”

  1. I tried to follow your ttaroiul (Mac OSX 10.6). I created the .vim dir and the colors dir into it. I pasted the molokai.vim file, then I put the command :colorscheme molokai, I restarted, but vim doesn’t change the colorscheme. What can I do?

Comments are closed.