zenbro / mirror.vim Goto Github PK
View Code? Open in Web Editor NEWEfficient way to edit remote files on multiple environments with Vim.
License: MIT License
Efficient way to edit remote files on multiple environments with Vim.
License: MIT License
Hello I get this error on Neovim when using MirrorPush
I don't know why, I tired to update and reinstall but nothing change..
Erreur détectée en traitant function <SNR>6_JobHandler :
ligne 24 :
E121: Undefined variable: self
E15: Expression invalide : self.type . ' failed'
ligne 25 :
E121: Undefined variable: self
E116: Arguments invalides pour la fonction has_key(self, 'stderr')
E15: Expression invalide : has_key(self, 'stderr')
ligne 28 :
E121: Undefined variable: message
E15: Expression invalide : message%
Hi,
I'm loving this plugin but I do find the messages from scp annoying and distracting. I could really incorporate it into my workflow if it was less obtrusive. For that reason I would like to request support for running the scp commands with Dispatch!
from tpope/vim-dispatch rather than using !
. Like here.
I would love to just wrap your commands like MirrorPush
in Dispatch
but unfortunately it only works for external commands, not vim commands.
Cheers,
Jacob
This is and idea I had in relation to the issue I just opened: #7
I was wondering if mirror.vim config could have a wildcard-like syntax which would match all projects in a directory. For example:
/home/user/projects/*:
devel: username@some_host.local//some/workplace/*/src/*
Which effectively works for any project in that directory, for example /home/user/projects/ProjectA
and works as if this existed in the config:
/home/user/projects/ProjectA:
devel: username@some_host.loca//some/workplace/ProjectA/src/ProjectA
That would be pretty cool but I expect it to be hard to implement so this is probably a pretty big feature request.
Hi! Thanks for writing this!!
I'm in a slightly different pickle, in that I need to be able to edit files locally but execute them remotely over and over again. Mostly I just use vi/vim on remote VM, but it'd be nice to be able to have it always push on save of a file. Possible? Easy?
Hey there,
nice Plugin you got here!
I've been wondering: Is it possible to read the remote targets from the git-directory?
So this way we wouldn't have to configure it twice.
Kind regards.
I have installed the plugin on my Mac using Vundle. I have followed the installation instructions and also added the config file. When I run the ':MirrorConfigReload' nothing seems to happen
Also I dont remote action commands activated. Not sure what am I missing.
Great plugin! Would it be possible to have :MirrorSSH
automatically jump to the directory as specified in the config?
For example, if config looks like this:
/home/user/work/project2:
staging: project2@another_host:23//opt/project2
:MirrorSSH
could do something like this:
ssh -p 23 -t project2@another_host "cd /opt/project2 && $SHELL"
So my plan is to essentially live edit my local and staging branch at the same time. At this time, I will also be keeping a gulpfile with browser to load my site when changes are made and in this way I can live the staging site locally.
Therefore, my question is, how can I use mirror.vim to save both locally and in staging?
Hello! It's me again to bother you.
I've written myself a small function that runs when I open project files that checks whether the project is already in the mirrors.yml
file with readfile()
and match()
and if not it appends a rudimentary config for that particular project using writefile()
.
The issue is, your plugin does not recognize the fact that a new project has been added to my mirrors.yml
and i have to restart vim in order for this to take effect.
Don't know how hard adding a :MirrorConfigReload
command would be to implement but I think it's an essential feature.
YO!
@zenbro If my development environment is also on a remote server, does this plugin also support that?
I just started playing with mirror.vim
and I really like it but I wasted like 10 minutes trying to figure out why my configuration was not being loaded. And that was because my config looked like this:
let g:mirror#config_file = '~/.config/nvim/mirrors.yml'
Only after I changed that to an absolute path it started to work. Just a small nitpick that might annoy new users.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.