Created
July 27, 2015 22:09
-
-
Save mrmch/6f62a63f3bef099f50d1 to your computer and use it in GitHub Desktop.
zsh function to tab complete opening vim sessions
This file contains 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
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