Skip to content

blkwtkns/vim-sesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-sesh

Need feedback!

I really wanted an easy and intuitive way to create, save, and restore vim sessions. I wanted it to be integrated with git and branching if git is involved. I also wanted to the ability to create default sessions or personally named sessions. And instead of having session files litered throughout my projects, I wanted my sessions to be in one place (as is the norm with vim session users), which would also give me the ability to even version the sessions so that others can easily pull them and remotely see specific branch projects.

I'm trying to build on optionality, and I need edge case input as well, so any input or suggestions are welcomed. The code isn't the prettiest yet, but refactoring will come (this is my first plugin, please be brutal).

Features

Break down to come, unitl then check out the code, it's pretty small

  • Use 'let g:sesh_directory' to set session destination Neovim default: $HOME/nvim.local/sessions Vim default: $HOME/.vim/sessions
  • Use 'let g:sesh_autocmds' to enable autocommands (Default 0)

TODO:

  • session pruning
  • restore default state

Acknowledgements

Many thanks to itchyny! His functions at: https://github.com/itchyny/vim-gitbranch allowed me to strip out all dependencies (though technically I'm still dependent on his logic!)

The rest is pretty much logic from here: http://vim.wikia.com/wiki/Go_away_and_come_back that I then bent to my will.

Cheers!

TEST 2

About

Vim session management tool

Resources

Stars

Watchers

Forks

Packages

No packages published