Friday, February 22, 2013

moving matched search pattern to after current line

I wish to issue a colon command to move a "seeded" search match to after current line.

like the following:

:'a,'bg/ZZZ/m.+1

'a and 'b are set and around search area containing the "ZZZ" seeded line to be moved...

m is for move, and i had thought the period would mean current line, but it does not...

and the "+1" would be line after where cursor was before the colon command...

Seems simple, what am I doing wrong...?

william...

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment