vim question
Adrian Lai
perl at loathe.me.uk
Wed Mar 26 01:25:49 GMT 2008
On 26/03/2008, Toby Corkindale <tjc at wintrmute.net> wrote:
> On Wed, Mar 26 Cristina Nunes top-posted:
>
> > Try V to select the all line and %s/:/ /
>
> > and a g for every occurence too
>
>
> Unfortunately the OP was interested in only changing the occurences after his
> cursor position, whereas selecting the whole line will change all.
>
> My own solution so far is quite inelegant:
> i<cr><esc>:s/:/ /g<cr>kJx
>
Try v$ to select to the end of the line.
Then :s/\%V:/ /g to do the actual replace.
Adrian.
More information about the london.pm
mailing list