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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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