On 2023-02-24 22:50, K otgc wrote:
> I'm having trouble moving text from file2 line1 to file1 line8.
If it's just one line as part of a larger change, you can yank it
and either paste it normally or visually-highlight the line with
"V" and paste to replace it (or paste it and then delete then line).
If it's a whole block, you can use "dp" or "do"
:help do
:help dp
:help :diffput
:help :diffget
to obtain the diff from the other window, or put the current diff
in the other window.
This assumes that, in your example, that diff mode has aligned
line 1 of file1 with line 8 of file2. If not, diff-mode won't help
you much in this case, so you'd have to revert to the yank/paste
method.
If that's what you're doing and you're still having trouble, you'd
have to expand on what you mean by "having trouble moving text."
-tim
--
--
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/ZAHu28HNW/i%2BumD5%40thechases.com.
No comments:
Post a Comment