sponsor Vim development Vim logo Vim Book Ad

mirror.vim : Efficient way to edit remote files on multiple environments

 script karma  Rating 9/3, Downloaded by 2812  Comments, bugs, improvements  Vim wiki

created by
Alexander Capybarov
 
script type
utility
 
description
GitHub: https://github.com/zenbro/mirror.vim
Live demo: https://asciinema.org/a/22407

If some of your projects have multiple environments (e.g. development, staging, production - with nearly the same directory and files structure), then there is a situations when you need to connect to one of this environments via ssh and remotely edit project-related files. Usually you will do something like this:

ssh user@host
cd path/to/you/project
vim /some/file
and so on...

This plugin was created to simplify this process by maintaining special configuration file and adding different commands for quickly doing remote actions for each environment of project you working with.
 
install details
Extract the zip file to ~/.vim. To use the help, see :help add-local-help. To regenerate helptags run :helptags ~/.vim/doc.

Add this lines to .vimrc (probably they already there):
set nocompatible  " disable backward compatibility with Vi
filetype plugin on  " plugins are enabled

For more details, see :help mirror
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
mirror.zip 1.3.0 2016-05-18 7.3 Alexander Capybarov * Wildcard support in mirrors config
* Add :MirrorConfigReload command
mirror.zip 1.2.0 2016-04-30 7.3 Alexander Capybarov * Add support for nvim job control for MirrorPush and MirrorPull command
mirror.zip 1.1.1 2015-09-01 7.3 Alexander Capybarov * Add support for nvim-terminal for MirrorSSH
* Improve regexp for remote path parsing
* Fix diff behavior for multiple splits
mirror.zip 1.1.0 2015-07-08 7.3 Alexander Capybarov * Auto change directory after establishing SSH connection
mirror.zip 1.0.2 2015-06-27 7.3 Alexander Capybarov * Use silent mode for netrw
* Improve environments autocomplete
* Perform project discovery for each buffer after saving config
* Quick way to close configuration file - q
* Fix typos in readme and documentation
mirror.zip 1.0.1 2015-06-25 7.3 Alexander Capybarov * Fix project discovery algorithm
mirror.zip 1.0.0 2015-06-24 7.3 Alexander Capybarov Initial upload
ip used for rating: 3.91.8.23

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github