On 2013-02-22 13:59, hackware wrote: > On Friday, February 22, 2013 3:00:49 PM UTC-6, Ben Fritz wrote: > > On Friday, February 22, 2013 12:18:50 PM UTC-6, hackware wrote: > > > 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... > > > > So . in a :g command refers to each line acted on. > > did not realize that :g set current line... > > guess i'll have to figger out yank/put from registers... > (working up to writing a script...)
As Ben suggests, you can do something like :kq|'a,'bg/ZZZ/m'q+1 where "kq" drops the "q" mark on the current/initial line, allowing it to then be referenced as the target for the move. -tim -- -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
