📜  vim 更改所有变量名 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:20.987000             🧑  作者: Mango

代码示例1
" Put this in your .vimrc

" For local replace
nnoremap gr gd[{V%::s////gc

" For global replace
nnoremap gR gD:%s////gc

" When you want to use, type:
gr
" over the variable you want to replace
" then type
ngR
" OR
ngr