Replace with Confirmation using Vim

This page answers questions like these:


Related Links:
Find Surrounding Code Block in Vim
Fold/Collapse/Hide Code Blocks in Vim
Expand/Show/Open Collapsed/Hidden/Folded Text in Vim
Write Lines to Another File in Vim/Vi
E432: Tags file not sorted: tags | E257: cstag: tag not found | E426: tag not found:



Replace with Confirmation using Vim:

:s/PATTERN1/PATTERN2/gc

Multi-line Replace with Confirmation using Vim:

:10,30s/PATTERN1/PATTERN2/gc

Global Replace with Confirmation using Vim:

:%s/PATTERN1/PATTERN2/gc


Related Links:
Find Surrounding Code Block in Vim
Fold/Collapse/Hide Code Blocks in Vim
Expand/Show/Open Collapsed/Hidden/Folded Text in Vim
Write Lines to Another File in Vim/Vi
E432: Tags file not sorted: tags | E257: cstag: tag not found | E426: tag not found:

Home  >  Vim  >  Replace with Confirmation using Vim


Tags: vim replace with confirmation, confirmation, confirm, replace with confirm, global replace, yes/no, vim

Copyright © HelpDoco.com
vim-replace-with-confirmation.txt
Vim/vim-replace-with-confirmation-using-vim.htm
3