Skip to content

Instantly share code, notes, and snippets.

@mrmch
Created July 27, 2015 22:09
Show Gist options
  • Save mrmch/6f62a63f3bef099f50d1 to your computer and use it in GitHub Desktop.
Save mrmch/6f62a63f3bef099f50d1 to your computer and use it in GitHub Desktop.
zsh function to tab complete opening vim sessions
compdef '_files -g "*.vim" -W ~/.vim/sessions' vs
vs() {
# optional: use $EDITOR instead of mvim (assumes one of vim/gvim/mvim)
# $EDITOR -S ~/.vim/sessions/$1.vim
mvim -S ~/.vim/sessions/$1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment