I'm looking to pair with people over tmux with Vim, but I've run into a snag. I've become so used to my Vim setup that I do not know how to navigate without some of my basic mappings that I've setup. That being said, if I SSH into somebody else's box, I don't really know my way around.
Is there a way to load some of my vimrc config when ssh-ing into someone else's box?
I suggest CoVim https://github.com/FredKSchott/CoVim This is not depend on tmux.
If it's just your .vimrc file, you could :source that:
:source scp://myhost/.vimrc
Thanks to the netrw plugin, this transparently accesses the file from your system; of course, you could also explicitly mount your home directory and then use a normal filespec to the mounted files.
In theory, you could even add your remote ~/.vim directory to 'runtimepath', so that all of your customizations and plugins are loaded, but that probably leads to greatly increased startup times (due to the network accesses), potential conflict with the host's plugins, and is therefore not recommended.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With