This is a small memo about how to use vim.
-
The easiest way set up vim is to use other people’s configuration. For example, vimrc is very good and you should take a look.
-
For Mac, install iterm2. The defualt terminal does not work very well with vim. To use the mouse, insert ‘set mouse=a’ in “.vimrs”.
-
In vim, select text using mouse while pressing option key, then you can copy by CMD + C
-
format all code: gg = G
-
search / and stop searching :noh
-
replace 0, $ s/a/b/gci
-
tab can be used to autocomplete command
-
useful pulgin: tag_list, TlistOpen, NERDTree, MRU, conque
-
enter shell “:shell”