Vim Search and Replace
I keep forgetting how to search and replace in vim so I decided to just create quick "sticky note" post.
:%s/search/replace/g -- replaces the word "search" for "replace", and the g stands for global.
:%s/search/replace/gc -- same as above but it asks for confirmation at each search/replace.
More here: http://vim.wikia.com/wiki/Search_and_replace














