sponsor Vim development Vim logo Vim Book Ad

nomad : Keep your environment variables in sync with tmux

 script karma  Rating 0/0, Downloaded by 58    Comments, bugs, improvements  Vim wiki

created by
Bastian Winkler
 
script type
utility
 
description
Using Vim in a remote tmux session is very convenient, because you can detach the running session and resume it later without leaving Vim. This is great in situations where you login with ssh into your development machine at work or your server to continue coding after you changed your location. But suddenly, when you try to access a git+ssh remote (maybe through tpope's excellent fugitive plugin) or access the quotestar or quoteplus registers, things won't work as expected because with a new ssh connection some of your environment variables changed and Vim doesn't know about it. Fortunately tmux knows about these changes and this is where the nomad plugin kicks in. It queries tmux for the new values and updates your environment in Vim.
 
install details
If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle git clone git://github.com/buztard/vim-nomad.git

Or for Vundle users:

Add Bundle 'buztard/vim-nomad' to your ~/.vimrc and then:

    either within Vim: :BundleInstall
    or in your shell: vim +BundleInstall +qall
 

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
vim-nomad.tar.gz 0.1 2014-03-16 7.0 Bastian Winkler Initial upload
ip used for rating: 54.161.181.49

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.
   
SourceForge.net Logo