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
Post a Comment