[ale] Pattern substitution in VIM?
Doug McNash
dmcnash at charter.net
Mon Nov 3 16:32:24 EST 2003
You should be able to get the idea:
:%s/\(.*\) \(.*\)/\2 \1/
the match in () is substituted for \1 \2
On Mon, 3 Nov 2003 15:12:46 -0500 (GMT-05:00)
Mike Panetta <ahuitzot at mindspring.com> wrote:
>Whats the easiest way to swap 2 space seperated items on
>a line in VIM?
>Like (0 1) -> (1 0)? I am trying to write an eagle
>script file to generate a
>package and knowing how to do something like this in VIM
>would make my
>life much simpler :)
>
>Thanks,
>Mike
>
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
--
Doug McNash <dmcnash at yahoo.com>
More information about the Ale
mailing list