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

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -