Tuesday, January 3, 2017

Re: How to do block pasting?

Thanks Aswin and Pongthep. I think I was doing the same thing as suggested by using the gvim gui, that is, using a small animal-like good-old hand device and everytime got the funny pasting result by hitting [p].

On the jEdit program which is one of the new generation of the text editors on Linux, you have [rectangular select] and [clipboard extension]>>[vertical paste] menu items under the [[Edit]] primary menu. This "vertical paste" thing did the task I wanted long perfectly.

I shall use the jEdit editor when some table-like editing operation is needed.

Any way, thanks very much for your valuable helps. Thanks again.


On 2017年01月02日 21:05, Aswin S wrote:
> With cursor on the 'r' of 'rst', do this key sequence:
>
> <ctrl-v>lll jj d gg A <space><space><esc>p
>
> This is same as what Jan said, just putting down the keystrokes.
>
> On Monday, 2 January 2017 04:29:07 UTC+5:30, hiwa wrote:
>> We only get the [p] result as:
>>
>> abc rst
>> uvw
>> xyz
>> def
>> ghi
>>
>> That is, and has been, our current perpetual problem.
>>
>> On 2017年01月02日 01:02, Paul wrote:
>>> On Sunday, 01 January, 2017 at 09:21:08 GMT, Hiroshi Iwatani wrote:
>>>> On my gvim screen, there are two sections on a same column:
>>>>
>>>> abc
>>>> def
>>>> ghi
>>>>
>>>> rst
>>>> uvw
>>>> xyz
>>>>
>>>> and I'd like to have two different columns aligned on same lines, like this:
>>>>
>>>> abc rst
>>>> def uvw
>>>> ghi xyz
>>>
>>> Visual block select (control-v) and yank the second block. Enter two spaces after the c. Either enter normal mode and paste, or control-o and p.
>>>
>

--
--
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/d/optout.

No comments: