also you can use the . (dot) the repeat the action I guess but I would do it like this: Select the table shift-v9 asuming you have 10 rows Then hit : and type s:\s\s: \& :g done
Cheers Jason Axelson schreef: > On Tue, Aug 25, 2009 at 1:41 AM, Joe<[email protected]> wrote: > > Ideally I'd like to turn: > > > > a b c d > > > > (into) > > > > a & b & c & d > > This sounds like a good job for macros. So something like this (with > cursor starting on the a and assuming the columns are identical): > > qqa & wa & wa & 0j > The above would record the macro, and then to play it use: > @q > Which could optionally by lead by a count to do it count many times > > :help q > :help CTRL-V > > Jason --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
