Skip to content

Instantly share code, notes, and snippets.

@marcparadise
Created October 18, 2013 16:20
Show Gist options
  • Save marcparadise/7043972 to your computer and use it in GitHub Desktop.
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`
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