Linux 如何复制 lynx 或链接中的链接 URL 以复制到 vim?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6864548/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I copy a link URL in either lynx or links to copy to vim?
提问by SimpleQs
I am having the most difficult time trying to figure out how to copy a link URL in either of these two browsers and then paste it into vim. Does anyone know how to go about doing this? I am using Slackware 13.1. Any alternatives to copy/paste are also acceptable.
我最难的是弄清楚如何在这两个浏览器中的任何一个中复制链接 URL,然后将其粘贴到 vim 中。有谁知道如何去做?我正在使用 Slackware 13.1。任何替代复制/粘贴的方法也是可以接受的。
回答by Drakkainen
I did a quick search, and I found this:
我快速搜索了一下,发现了这个:
https://superuser.com/questions/82969/how-do-i-copy-a-link-in-lynx
https://superuser.com/questions/82969/how-do-i-copy-a-link-in-lynx
Looks like you hover over the link and "shift+e" (or "shift+g" for current page) and copy it with "ctrl+shift+c".
看起来您将鼠标悬停在链接和“shift+e”(或当前页面的“shift+g”)上并使用“ctrl+shift+c”复制它。
回答by Micha? ?rajer
you can use "screen" command. It has it's own copy-paste mechanism.
您可以使用“屏幕”命令。它有自己的复制粘贴机制。
回答by Michael Dillon
If you would ssh into the server, rather than sitting at the console, then you could just use normal mouse selection to copy and paste. The cut and paste is handled by a GUI like X or Windows 7 or MacOS GUI. It is part of the terminal app.
如果您想通过 ssh 进入服务器,而不是坐在控制台前,那么您可以只使用普通的鼠标选择来复制和粘贴。剪切和粘贴由 X 或 Windows 7 或 MacOS GUI 等 GUI 处理。它是终端应用程序的一部分。
回答by Stefan van den Akker
Apparently, you can also use Ctrl+ Sto save the URL of the current page or the current link (at least on my version 2.8.8).
显然,您还可以使用Ctrl+S来保存当前页面的 URL 或当前链接(至少在我的 2.8.8 版本上)。
(Unfortunately, I'm currently getting an error "Copy to clipboard failed", but maybe someone else is more lucky.)
(不幸的是,我目前收到错误“复制到剪贴板失败”,但也许其他人更幸运。)