vim continuously verifies substitutions
迷茫
迷茫 2017-05-16 16:35:50
0
2
538
:%s/souce/source/c

How to make it continuously verify replacement

迷茫
迷茫

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

reply all(2)
给我你的怀抱

:%s/souce/source/gc

黄舟

Copy the following code into your .vimrc file

" 不确认、非整词
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>

Source: https://github.com/yangyangwi...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!