On Sat, Mar 4, 2023 at 1:08 AM K otgc <[email protected]> wrote: > > Hello, I would like to copy/yank text from vim out to other programs like > dpaste or Google Docs. > I would also like to coy/yank text from external programs like website text > into vim. > I can manually highlight external program text with my mouse, copy and then > insert into vim, but maybe there's a vim script for this? > > Thank you :-)
No script is necessary: yanking or deleting into the + register copies or cuts, respectively, to the clipboard, and yanking from the + register pastes from the clipboard. In gvim you can also use the menus Edit→Cut, Edit→Copy and Edit→Paste just like in any other GUI program. Of course for it to work you need a Vim compiled with +clipboard and you need to be running it either as gvim or in a terminal with access to the clipboard (not in, for instance, a Linux text console). Best regards, Tony. -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXtNNENHz8a_6piDF1U%2BRdDhXMdx72HLmcU-ESG_1LZyfA%40mail.gmail.com.
