使用vim编辑远程文件
使用 vim scp://remoteuser@server.tld//path/to/document 运行 vim。或者在 vim 运行时输入 :e scp://remoteuser@server.tld//path/to/document
。
Vim 支持通过 dav、fetch、ftp、http、rcp、rsync、scp 或者 sftp 编辑远程文件。
在 Windows 上面使用 gVim
- 下载及安装 gVim
- 下载及安装 PuTTY
- 将
%ProgramFiles%\PuTTY加入 PATH - 创建
%ProgramFiles%\PuTTY\scp.bat@echo off pscp.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
参考资料
0 TrackBacks
Listed below are links to blogs that reference this entry: 使用vim编辑远程文件.
TrackBack URL for this entry: http://www.mamiyami.com/mt/mt-tb.cgi/39

Leave a comment