使用vim编辑远程文件

| | Comments (0) | TrackBacks (0)

使用 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

  1. 下载及安装 gVim
  2. 下载及安装 PuTTY
  3. %ProgramFiles%\PuTTY 加入 PATH
  4. 创建 %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

About this Entry

This page contains a single entry by 泥偶 published on April 15, 2008 6:03 PM.

北京动物园不完全地图 was the previous entry in this blog.

全国哀悼日 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.12