Tuesday, May 25, 2021

Insert non-rectangular selection

Hi all,

I repeatedly have the following situation, and wonder how it can be
handled better than I do it now. These lines must be merged

/path;text
/path;text
/path;text

with these:

/subdir
/longsubdir
/longlongsubdir

Result:

/path/subdir;text
/path/longsubdir;text
/path/longlongsubdir;text


What I do now is to mark and yank the second block, go to the first
semicolon, and press P. Result is:

/path/subdir ;text
/path/longsubdir ;text
/path/longlongsubdir;text

But this is obviously not what I want. How can I avoid the extra blanks?

--
Andre Tann

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/6af9cfec-bd59-25b3-45c9-98d72c80c62e%40alphasrv.net.

No comments:

Post a Comment