vim 不断验证替换
迷茫
迷茫 2017-05-16 16:35:50
0
2
539
:%s/souce/source/c

如何使其不断验证替换

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回复(2)
给我你的怀抱

:%s/souce/source/gc

黄舟

把以下代码复制到你的 .vimrc 文件

" 不确认、非整词
nnoremap <Leader>R :call Replace(0, 0, input('Replace '.expand('<cword>').' with: '))<CR>
" 不确认、整词
nnoremap <Leader>rw :call Replace(0, 1, input('Replace '.expand('<cword>').' with: '))<CR>
" 确认、非整词
nnoremap <Leader>rc :call Replace(1, 0, input('Replace '.expand('<cword>').' with: '))<CR>
" 确认、整词
nnoremap <Leader>rcw :call Replace(1, 1, input('Replace '.expand('<cword>').' with: '))<CR>
nnoremap <Leader>rwc :call Replace(1, 1, input('Replace '.expand('<cword>').' with: '))<CR>

来源:https://github.com/yangyangwi...

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!