You did something wrong.
Well, you have...
abc
def
ghi
rst
uvw
xyz
In exit mode (escape), move the cursor to 'c'.
Type 'a' to enter insert mode, then type 2 spaces.
Escape again, then move the cursor to 'r'.
ctrl-v to enter visual block mode.
Then type 'l', 'l', 'j', 'j', to cover the block to move.
The current cursor will then move to 'z'.
Type 'd' to delete them.
Then repeating 'k' until the cursor points 'a'.
Then type '$', and finally 'p'.
Hope that helps.
--
Pongthep Kulkrisada
"UNIX is basically a simple operating system,
but you have to be a genius to understand the simplicity."
-- Dennis M. Ritchie
* Hiroshi Iwatani (HGA03630@nifty.ne.jp) wrote:
> 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.
--
--
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.
Monday, January 2, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment