You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to share the following sh(1) function that I wrote to "alias" vim so that it starts with obsession, unless there are any arguments provided to vim (in the case of editing a particular file). Just add it to your .profile or .bashrc or .zshrc to use it.
functionvim() {
iftest$# -gt 0;then
env vim "$@"eliftest -f Session.vim;then
env vim -S
else
env vim -c Obsession
fi
}
Thanks so much for creating vim obsession! 💌
The text was updated successfully, but these errors were encountered:
This is neat and I used it for a while, then I created a plugin for vim to do this instead and a little more to enable easy switching between vim sessions cleanly. Checkout https://github.com/dhruvasagar/vim-prosession
Hello,
I'd like to share the following sh(1) function that I wrote to "alias" vim so that it starts with obsession, unless there are any arguments provided to vim (in the case of editing a particular file). Just add it to your
.profile
or.bashrc
or.zshrc
to use it.Thanks so much for creating vim obsession! 💌
The text was updated successfully, but these errors were encountered: