Friday, March 3, 2023

Re: Vimdiff editing text

How about


vim file2

yy

:e file1

7G

p


ie open file 2, grab the first line, edit file1, move to line 7 and append what you yanked.


No doubt there are ways involving two windows.


regards - Chris




------ Original Message ------
From: "K otgc" <konthegoldcoast@gmail.com>
To: "vim_use" <vim_use@googlegroups.com>
Sent: Saturday, 25 Feb, 2023 At 06:50
Subject: Vimdiff editing text

I'm having trouble moving text from file2 line1 to file1 line8.
How do I do that please?

--
--
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/8fe3aa5b-29fb-40fb-b170-de4f16531552n%40googlegroups.com.

No comments:

Post a Comment