vim change all variable names
" Put this in your .vimrc
" For local replace
nnoremap gr gd[{V%::s/<C-R>///gc<left><left><left>
" For global replace
nnoremap gR gD:%s/<C-R>///gc<left><left><left>
" When you want to use, type:
gr
" over the variable you want to replace
" then type
ngR
" OR
ngr