https://github.com/oprogramador/vim-ftp
vim plugin for synchronization via FTP
https://github.com/oprogramador/vim-ftp
Last synced: 5 months ago
JSON representation
vim plugin for synchronization via FTP
- Host: GitHub
- URL: https://github.com/oprogramador/vim-ftp
- Owner: oprogramador
- Created: 2014-12-15T15:47:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-09-20T22:32:28.000Z (almost 5 years ago)
- Last Synced: 2025-06-12T10:12:06.959Z (about 1 year ago)
- Language: Vim script
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-ftp
This plugin enables downloading and uploading files via FTP using vim editor.
## Installation:
- Make sure, you have [realpath](https://man7.org/linux/man-pages/man3/realpath.3.html) installed.
- Use [pathogen](https://github.com/tpope/vim-pathogen) or [vundle](https://github.com/VundleVim/Vundle.vim).
- Run `scripts/startup.sh`.
## Configuration
Write your FTP settings in the `.vimrc` file like the following:
```vim
let g:ftp_conf = {
\ 'local_base_path' : '/home/name/sample/',
\ 'local_backup_path' : '/home/name/undo/',
\ 'remote_base_path' : '/var/www/sample/',
\ 'user' : 'username',
\ 'pass' : 'password',
\ 'host' : '127.0.0.1',
\ 'silent' : 0
\ }
```
## Usage
- `:call Download()` - download current file
- `:call Upload()` - upload current file
- `:call DownloadAny('file.txt')` - download any file
- `:call UploadAny('file.txt')` - upload any file
- `:call DownloadAllBuffers()` - download files in all opened buffers
- `:call UploadAllBuffers()` - upload files in all opened buffers
- `:call DownloadAllTabs()` - download files in all opened tabs
- `:call UploadAllTabs()` - upload files in all opened tabs
- `Tab` - open new file with backup
- `Close` - close current tab with backup
- `CloseAll` - close all opened tabs with backup