Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rnaveiras/vim-git-session
- Owner: rnaveiras
- License: other
- Created: 2012-08-28T09:55:54.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-19T08:39:32.000Z (over 11 years ago)
- Last Synced: 2023-03-12T09:41:37.124Z (over 1 year ago)
- Language: VimL
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()"