vim - GVIM. How to change certain words that match the pattern? -
in normal mode press +* , vim highlighs occurences of word under cursor. how change example 2,4-5 (second, fourth , fifth) words in search results %s command? know can use %s , change searched word in lines, not need.
assuming did find first, use
:%s//replaced/gic
it ask each replacement if needs done.
Comments
Post a Comment