Created
October 18, 2013 16:20
-
-
Save marcparadise/7043972 to your computer and use it in GitHub Desktop.
An alias to send files to a shared vim session that is specific to the current tmux window. Allows you to have one vim session for each window that is used to open files from any pane in that window. Requires vim to be built w/ `+clientserver`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ -z $TMUX ]]; then | |
server_name="--servername VIM" | |
else | |
server_name="--servername vim-`tmux display-message -p '#S.#I'`" | |
fi | |
alias vis="vim $server_name --remote-tab-silent" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment