简体   繁体   中英

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?

我建议CoVim https://github.com/FredKSchott/CoVim这不依赖于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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM