Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 451 Bytes

tip5.md

File metadata and controls

20 lines (14 loc) · 451 Bytes

##Search 'target' and replace all the 'target'

:%s/target/replacemnet/g

##But one by one?

##/target

search document for next match.

##*

execute a search for the word under the cursor at that moment.

##*nn

cycle through all matches, taking us back to where we started.

##cw

delete to the end of the word and drop us into Insert mode.

#Example
tip5
#<<Tip4 Tip6>>