Wednesday, August 26, 2009

Re: inserting a column of &s into a text table for latex

Thanks for all the tips, I had an internet outage today, but I'll follow
up on these ideas.

Tim, sometimes I have tabs between the data and sometimes, white spaces,
it changes.

Bastiaan wrote:
> 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<joe.gain@gmail.com> 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
> >
>


--
Joe Gain
Jacob-Burckhardt-Str. 16
78464 Konstanz
Germany

tel: +49 (0)7531 60389
mob: +49 (0)1515 4266649

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: