vim edit - Editing in different position of each line at the same time -


i wonder if there rapid method change this:

foo: '' foobarfoo: '' foof: '' fooba: '' foobarbar: '' foooobar: '' 

to

foo: 'foo' foobarfoo: 'foobarfoo' foof: 'foof' fooba: 'fooba' foobarbar: 'foobarbar' foooobar: 'foooobar' 

obviously, want paste word in line parentheses. ideas?

this line works example:

%s/\v([^:]*)(:\s*).*/\1\2'\1'/ 

or love playing macro:

qq0ywf'pjq 

then 99@q (99 how many times want play macro)


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -