扫码关注官方订阅号
:%s/souce/source/c
如何使其不断验证替换
业精于勤,荒于嬉;行成于思,毁于随。
:%s/souce/source/gc
把以下代码复制到你的 .vimrc 文件
.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...
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
:%s/souce/source/gc
把以下代码复制到你的
.vimrc
文件来源:https://github.com/yangyangwi...