{"id":16821151,"url":"https://github.com/chrisallenlane/vim-git-session","last_synced_at":"2026-05-17T00:43:18.122Z","repository":{"id":66749747,"uuid":"251731330","full_name":"chrisallenlane/vim-git-session","owner":"chrisallenlane","description":"A \"git-aware\" session-manager for Vim.","archived":false,"fork":false,"pushed_at":"2020-08-09T13:42:12.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T16:18:38.009Z","etag":null,"topics":["git","session-manager","vim","vim-plugin","workflow","workflow-automation"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisallenlane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-03-31T21:04:35.000Z","updated_at":"2020-09-09T11:59:03.000Z","dependencies_parsed_at":"2023-04-13T14:25:09.368Z","dependency_job_id":null,"html_url":"https://github.com/chrisallenlane/vim-git-session","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chrisallenlane/vim-git-session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisallenlane%2Fvim-git-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisallenlane%2Fvim-git-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisallenlane%2Fvim-git-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisallenlane%2Fvim-git-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisallenlane","download_url":"https://codeload.github.com/chrisallenlane/vim-git-session/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisallenlane%2Fvim-git-session/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274232035,"owners_count":25245856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","session-manager","vim","vim-plugin","workflow","workflow-automation"],"created_at":"2024-10-13T10:59:11.720Z","updated_at":"2026-05-17T00:43:13.070Z","avatar_url":"https://github.com/chrisallenlane.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"vim-git-session\n===============\n`vim-git-session` wraps `mksession` and `source` to provide a mechanism for\ncreating sessions that map to the branches of a git repository. This can be\nuseful when working among several topic branches simultaneously.\n\nSession files will be named according to the following pattern:\n\n    \u003csession-dir\u003e/\u003crepo\u003e-\u003cbranch\u003e.vim\n\nThe value of `\u003csession-dir\u003e` must be configured via `gitsession_session_dir`.\n\n\nExample\n-------\nAssume that you're developing a feature on the `feat-foo` branch when you\nreceive a high-priority bug report. `vim-git-session` allows you to do the\nfollowing:\n\n1. Run `:Save`. This will deterministically generate a name for your session,\n   and save the file to a configured location. (`:Save` must first be mapped in\n   your `vimrc`.)\n\n2. `git checkout` a bugfix branch, and fix the bug. (You may want to `:Save`\n   this session as well.)\n\n3. With the bug fixed, resume feature-development: `git checkout feat-foo`,\n   launch `vim`, and run `:Load`. Your initial session will reopen. (`:Load`\n   must likewise be configured before use.)\n\nOf course, the above can be accomplished without a plugin, but\n`vim-git-session` removes the burden of manually managing session files. You\nneed simply remember `:Save` and `:Load`. (`:Remove` is also available should\nyou want to delete a session.)\n\nConfiguring\n-----------\n`vim-git-session` must be configured in `.vimrc`:\n\n```vim\n\" The path at which your session files should be stored. This directory must\n\" exist - it will not be created by the plugin\nlet g:gitsession_session_dir=~/.vim/session\n\n\" map commands to save, load, and remove sessions\ncommand Save :call gitsession#save()\ncommand Load :call gitsession#load()\ncommand Remove :call gitsession#remove()\n```\n\nIt is also recommended to disinclude `folds` from your `sessionoptions` in\norder to prevent \"fold not found\" errors from being thrown:\n\n```vim\nset sessionoptions=buffers,curdir,globals,help,tabpages,winsize\n```\n\nView [the plugin documentation][doc] for more information.\n\n[doc]: ./doc/vim-git-session.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisallenlane%2Fvim-git-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisallenlane%2Fvim-git-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisallenlane%2Fvim-git-session/lists"}