如何仅通过键盘将Windows应用程序从Windows应用程序复制/粘贴到vim-gnome(通过ssh运行到linux服务器) [英] How to copy/paste from windows application to vim-gnome (running via ssh to linux server) by KEYBOARD ONLY

查看:91
本文介绍了如何仅通过键盘将Windows应用程序从Windows应用程序复制/粘贴到vim-gnome(通过ssh运行到linux服务器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

原始问题:(请阅读下面的本节更新)我正在Windows 10主机上的Virtualbox上运行Ubuntu 16.04.通过在Windows上通过Bash运行的ssh访问Virtualbox.我可以进入并编辑所有内容,但是,当我尝试使用Windows快捷方式将任何内容从Windows应用程序粘贴到VIM或从VIM粘贴到Windows应用程序时,它不起作用.没有任何本机密钥可用于从Windows上bash上的VIM复制到Windows应用程序.在VIM中,复制粘贴照常工作.

Original question: (please read update in this section below) I am running Ubuntu 16.04 on Virtualbox on a Windows 10 Host. Accessing the Virtualbox through ssh running through Bash on Windows. I can get in and edit everything fine However, when I try to paste anything from windows application to VIM or from VIM to windows applications with keyboard shortcuts it doesnt work. None of the native keys work to copy from VIM on bash on Windows to windows apps. Within VIM copy paste works as usual.

对于这个问题的未来访问者,我想我会编译一些参考资料,以显示通过Putty和WSL运行的往返于Windows剪贴板和vim的复制粘贴不起作用:

For future visitors to this question, I thought I would compile some references to show that copy-pasting to and from windows clipboard to vim running through Putty and WSL doesnt work:

  1. 油灰手册参考,表明您无法将其粘贴到Windows上的腻子: https://superuser.com/a/85774/658319
  2. 在WSL和ssh上运行bash到linux服务器中不能用于复制或从Windows粘贴到Linux上的VIM或从Linux上的VIM粘贴(检查文章底部的COPY和PASTE),仅使用键盘: https://alliterationapplications.com/putty-vs-ubuntu-on-windows/

能够在Linux上运行的vim之间复制粘贴的替代软件:

Alternative software to being able to copy-paste to and from vim running on linux:

  1. 软件解决方案:

  1. Software solutions:

1.1.小猫: https://superuser.com/a/1112362/658319

1.2.自动快捷键: https://superuser.com/a/1112362/658319

1.2. Autohotkey: https://superuser.com/a/1112362/658319,

1.3.超级输入: https://superuser.com/a/450812/658319

1.3. Superputty: https://superuser.com/a/450812/658319

1.4.conEmu: https://superuser.com/a/450812/658319

1.4. conEmu: https://superuser.com/a/450812/658319

1.5.使用Windows鼠标模拟键: https://superuser.com/a/426311/658319

1.5. using windows Mouse simulation keys: https://superuser.com/a/426311/658319

1.6.使用Gnu屏幕应用程序: https://superuser.com/a/85785/658319 https://superuser.com/a/273490/658319

1.6. using Gnu screen app: https://superuser.com/a/85785/658319, https://superuser.com/a/273490/658319

通过对腻子的修改(对我有用的工作):

through modificaitons on putty (didnt work for me): https://www.quora.com/How-can-you-copy-all-contents-of-a-text-file-opened-in-vim-through-Putty-on-a-Windows-desktop-to-Windows-clipboard/answer/Lifu-Tang

类似于VIM的其他编辑器可能具有更轻松的复制粘贴功能(请测试并提及是否可行.我将更新答案):

Other editors similar to VIM which might have easier copy-paste functionality (please test and mention if these work. I will update the answer):

3.1.NeoVIM

3.1. NeoVIM

3.2.原子

在Windows上的Bash上使用SSH连接到linux服务器,并将其复制粘贴到vim/从vim复制

Connecting using SSH on Bash on Windows to linux server and copy-pasting to/from vim

4.1.使用VCX服务器: https://stackoverflow.com/a/44534222/4752883 4.2.使用自动快捷键: https://stackoverflow.com/a/44534222/4752883

4.1. Use VCX server: https://stackoverflow.com/a/44534222/4752883 4.2. Use Autohotkey: https://stackoverflow.com/a/44534222/4752883

关于将键盘仅复制粘贴到wsl/putty/其他终端仿真器上的bash到vim到Linux的其他建议?

Any other potential suggestions for keyboard only copy-paste to vim through bash on wsl/putty/other terminal emulators to linux?

P.S.请不要张贴任何使用鼠标以方式或形式进行粘贴的答案..试图在此处保持清晰..因为大多数询问此问题的用户都要求使用仅键盘的解决方案

P.S. please dont post any answers which use mouse in way or form for copy paste.. trying to keep it clear here.. as most users who are asking this question are asking for a keyboard only solution.

推荐答案

根据腻子文档,它不允许键盘快捷键,因为如果您按任意键,它将反映在远程计算机上.

As per the putty documentation, it does not allow keyboard shortcuts because if you press any key it is reflecting on the remote machine.

https://superuser.com/questions/85772/putty如何选择仅使用键盘的文本并复制文本

https://superuser.com/questions/490722/putty-alternative-with-keyboard-copy-paste

这篇关于如何仅通过键盘将Windows应用程序从Windows应用程序复制/粘贴到vim-gnome(通过ssh运行到linux服务器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆