Tuesday, January 3, 2017

Re: How to do block pasting?

On Wednesday, 4 January 2017 06:54:38 UTC+8, hiwa wrote:
> Oh Ben, you are right.
>
> This morning I tried to do THE same task by using ONLY vim key commands like [h][j][k][l] for cursor movement, then I got the perfect desired result i.e. a vertical pasting. The lesson I may have learned is "don't use mouse for cursor movement for gvim rectangular operations", and, "You only should use those venerable vim key commands".
>
> I prefer an appropriate set of menu items and mouse operations, though. Gvim must be a GUIed vim.
>
> Thanks, any way.
>
>
> On 2017年01月03日 23:52, Ben Fritz wrote:
> > On Tuesday, January 3, 2017 at 6:55:13 AM UTC-6, hiwa wrote:
> >> 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.
> >>
> >>
> >
> > If you were to actually, correctly, use CTRL+V to select the text you copied, then Vim will AUTOMATICALLY do a "vertical paste".
> >
> > Either you aren't following directions, or you have a mapping interfering. You shouldn't need a different editor to do this. It's built into Vim and has been for years.
> >

Use Alt-LMB (Left Mouse Button) to do a VISUAL BLOCK selection.
Add two spaces, and do a paste...

HTH

--
--
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:

Post a Comment