Tip: very rudimentary session management in Vim

Edit: As it usually goes, I’ve realized I might want to work on this some more. So, the rudimentary sessions is now a Vim bundle, available on GitHub: https://github.com/casastorta/vim-rudimentary-sessions

My development tools are basically split into 3 categories:

  • Eclipse for big projects,
  • Sublime Text 2, for most of the open source projects and smaller job projects,
  • Vim for “shotgun-development“, when I need to do something quickly and immediately.

That being said, through the years, I’ve got to get used to Eclipse way of handling projects (in terms of keeping record of project files and project specific configurations on the filesystem). Eclipse creates
file inside base directory of your project where everything related to the project is kept. I find it useful, because I don’t have to think extra of what to include in backup process. :-)

So today I pretty much expect every editor I use on part-time basis to be able to store project/session data in similar way. Sublime does it – although it doesn’t come with built-in centralized project repository, when you save main project file and project workspace file, they can be saved pretty much anywhere. I tend to keep them in project’s directory (with obligatory entries for
in .gitignore/.hgignore of course!). Continue reading “Tip: very rudimentary session management in Vim”