SWAP LHS to RHS using VIM

xxPCIbclkp = gsrpkg/gsrdie/xxPCIbclkp

if i got many lines of the above.

How can i swap to become as below at the same time some new words gsrpkg_te can be add in
/gsrpkg_te/gsrpkg/gsrdie/xxPCIbclkp = xxPCIbclkp  




How to do this in VIM.

Last edited on
^f=2ld$^Pldt $p
@ne555

hi could you elaborate more how this is being used?
Does it have to be vim?

sed "sT\(.*\) = \(.*\)T/gsrpkg_te/\2 = \1T" filename
(Depending on what else is on the file.)
AWK
 
{ printf("%s %s %s\n", $3, $2, $1); }
Thank to all.But I found this and worked for me.

http://stackoverflow.com/questions/1374105/swap-text-around-equal-sign
Topic archived. No new replies allowed.