Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rnaveiras/vim-git-session

Save vim sessions follow the automatic name branch-repo-name
https://github.com/rnaveiras/vim-git-session

Last synced: 16 days ago
JSON representation

Save vim sessions follow the automatic name branch-repo-name

Awesome Lists containing this project

README

        

# Vim Git Session

Is a quick hack to use Vim sessions that are name automaticaly and save with the following name:

`git branch`-`git repo name including organization or username`-session.vim

For instance: "master-rnaveiras-vim-git-session-session.vim"

This sessions are saved at ~/.vim/sessions

The plugin map `s` to save the session or you can call the function "SaveCurrentSession()"

You can autosave your session by setting somewhere in your vimrc the global variable `g:session_autosave` to "yes":

let g:session_autosave = 'yes'

To open a session just run `vim -S session-name.vim` or type `o` inside vim. You can also call the function "OpenCurrentSession()"