Instead of editing the file remotely, it can be transfered from the host server, to a local copy, edited and then sent back when done. I know that you can do this manually, but it's a hassle, besides, if it can be done automatically, why not go for that? You need the following installed and properly configured:
* Vim
* netrw.vim (distributed with Vim)
* scp, rcp, ftp or ftp+ To use, all you need is to specify the protocol, user, host and path to the file you want to edit: If you already have an open session, then just issue the following commands:
Attributes | Values |
---|
rdfs:label
| - Edit remote files locally via SCP/RCP/FTP
|
rdfs:comment
| - Instead of editing the file remotely, it can be transfered from the host server, to a local copy, edited and then sent back when done. I know that you can do this manually, but it's a hassle, besides, if it can be done automatically, why not go for that? You need the following installed and properly configured:
* Vim
* netrw.vim (distributed with Vim)
* scp, rcp, ftp or ftp+ To use, all you need is to specify the protocol, user, host and path to the file you want to edit: If you already have an open session, then just issue the following commands:
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Author
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
Rating
| |
abstract
| - Instead of editing the file remotely, it can be transfered from the host server, to a local copy, edited and then sent back when done. I know that you can do this manually, but it's a hassle, besides, if it can be done automatically, why not go for that? You need the following installed and properly configured:
* Vim
* netrw.vim (distributed with Vim)
* scp, rcp, ftp or ftp+ To use, all you need is to specify the protocol, user, host and path to the file you want to edit:
* vim scp://konimi@vim.org//var/www/html/rtc_functions.php
* gvim scp://konimi@vim.org//var/www/html/tips/add_tip.php Every time you write the file (:w etc) the file will get copied over to the source and you will be brought back to your session for further editing. If you already have an open session, then just issue the following commands: To read/load up a file: :Nread scp://konimi@vim.org//var/www/html/rtc_functions.php To write the file back: :Nwrite scp://konimi@vim.org//var/www/html/rtc_functions.php That's it! You'll be editing at local speed.
|