Extended Command Mode: Find and Replace

Extended Command Mode: find and replace search and replace operation is completed in the extended format command mode: the content s / to find / replace the contents, to look for modifiers: can be replaced with the content usage modes: mode can not be used, but after use \ 1, \ 2, ..., etc. to the reference symbol; can also use "&" the entire contents of the foregoing references modifier when looking to find: i ignore case
g global substitution, by default, only the first alternative each row Alternatively occurrence gc global, search and replace in each interrogation separator before replacement / may be replaced with other character s @ / etc @ / var @ gs # boot # / # i

Published 52 original articles · won praise 1 · views 1705

Guess you like

Origin blog.csdn.net/wx25051/article/details/102474811