Disable auto indent
~/.vimrc
set expandtab set tabstop=2 set shiftwidth=2 set noautoindent set nosmartindent set nocindent set bg=dark set nowrap
Search and replace
http://vim.wikia.com/wiki/Search_and_replace
replace (case insensitive) foo to bar whale document with confirmations
%s/foo/bar/gci