Answers for "vim change all variable names"

1

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
Posted by: Guest on October-27-2021
1

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
Posted by: Guest on October-27-2021

Browse Popular Code Answers by Language