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

Popular posts from this blog

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -