| 120 | |
| 121 | == !Emacs/Vim == |
| 122 | |
| 123 | Emacs can edit remote files using [http://www.gnu.org/software/tramp/ TRAMP], and likewise Vim using [http://www.vim.org/scripts/script.php?script_id=1075 netrw.vim]. Emacs 23.4.1 was tested and does not work since TRAMP expects a "shell" rather than the "subsystem" (see [http://tools.ietf.org/html/rfc4254#section-6.5 RFC 4254 section 6.5]) interface Tahoe-LAFS supports. |
| 124 | |
| 125 | Vim 7.3 with netrw.vim 142 was tested and works. I couldn't find out how to specify a port when opening a remote file (perhaps it's not possible), but you can setup a host with the correct port in your ssh config ({{{~/.ssh/config}}} for me): |
| 126 | |
| 127 | {{{ |
| 128 | Host tahoe |
| 129 | HostName 127.0.0.1 |
| 130 | User peter |
| 131 | Port 8022 |
| 132 | }}} |
| 133 | |
| 134 | Now to open a file: {{{vim sftp://peter@tahoe/secrets.txt}}}, where {{{secrets.txt}}} is a file at the root of the dircap associated with the SFTP user {{{peter}}} in {{{accounts.file}}}. You'll get a password prompt whenever you open or save. Unfortunately netrw.vim stores the remote file in a temporary file on local non-volatile memory, which may defeat the purpose of remote editing. |