vim short for search replace with space in between -


what vim short case?

a bcd_x 1.pdf bcd_x 2.pdf 

desired output:

a bcd_x 1.pdf:::a bcd_x 2.pdf 

you mean this?

:s/\s\(a\s\)/:::\1 

or how this?

:s/\sa\@=/::: 

of course, regexp search-and-replace depends on particulars of data. of haven't given work with.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -