Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pair with tmux but use our own vimrc files

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?

like image 530
Matt Bridges Avatar asked Dec 05 '25 15:12

Matt Bridges


2 Answers

I suggest CoVim https://github.com/FredKSchott/CoVim This is not depend on tmux.

like image 69
mattn Avatar answered Dec 08 '25 12:12

mattn


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.

like image 42
Ingo Karkat Avatar answered Dec 08 '25 10:12

Ingo Karkat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!