我需要ssh到远程机器并在vim中编辑。有时,我需要从中复制一些 远程机器到本地机器。有没有简单的方法呢?
我想要的是这样:
remote: select a few lines in vim, and yank it in a register or something.
local: put the content from remote machine into a local buffer.
答案 0 :(得分:1)
您可以在本地vim中打开远程文件(通过scp),例如:
vim scp://youruser@remoteserver//path/to/yourfile