Skip to content

Instantly share code, notes, and snippets.

@robmiller
Last active February 18, 2022 11:53
Show Gist options
  • Save robmiller/5135652 to your computer and use it in GitHub Desktop.
Save robmiller/5135652 to your computer and use it in GitHub Desktop.
Autoload sessions created by tpope's vim-obsession when starting Vim.
augroup sourcesession
autocmd!
autocmd VimEnter * nested
\ if !argc() && empty(v:this_session) && filereadable('Session.vim') |
\ source Session.vim |
\ endif
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment