{"id":13479759,"url":"https://github.com/tpope/vim-obsession","last_synced_at":"2025-04-09T06:12:37.809Z","repository":{"id":7370034,"uuid":"8696081","full_name":"tpope/vim-obsession","owner":"tpope","description":"obsession.vim: continuously updated session files","archived":false,"fork":false,"pushed_at":"2022-12-02T01:28:48.000Z","size":30,"stargazers_count":1753,"open_issues_count":23,"forks_count":68,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-10-15T02:41:32.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=4472","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpope.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":"CONTRIBUTING.markdown","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"tpope","custom":["https://www.paypal.me/vimpope"]}},"created_at":"2013-03-11T03:44:15.000Z","updated_at":"2024-10-12T11:37:31.000Z","dependencies_parsed_at":"2023-01-13T14:21:20.404Z","dependency_job_id":null,"html_url":"https://github.com/tpope/vim-obsession","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-obsession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-obsession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-obsession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-obsession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/vim-obsession/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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","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":[],"created_at":"2024-07-31T16:02:22.547Z","updated_at":"2025-04-09T06:12:37.785Z","avatar_url":"https://github.com/tpope.png","language":"Vim Script","funding_links":["https://github.com/sponsors/tpope","https://www.paypal.me/vimpope"],"categories":["Vim Script"],"sub_categories":[],"readme":"# obsession.vim\n\nVim features a `:mksession` command to write a file containing the current\nstate of Vim: window positions, open folds, stuff like that.  For most of my\nexistence, I found the interface way too awkward and manual to be useful, but\nI've recently discovered that the only thing standing between me and simple,\nno-hassle Vim sessions is a few tweaks:\n\n* Instead of making me remember to capture the session immediately before\n  exiting Vim, allow me to do it at any time, and automatically re-invoke\n  `:mksession` immediately before exit.\n* Also invoke `:mksession` whenever the layout changes (in particular, on\n  `BufEnter`), so that even if Vim exits abnormally, I'm good to go.\n* If I load an existing session, automatically keep it updated as above.\n* If I try to create a new session on top of an existing session, don't refuse\n  to overwrite it.  Just do what I mean.\n* If I pass in a directory rather than a file name, just create a\n  `Session.vim` inside of it.\n* Don't capture options and maps.  Options are sometimes mutilated and maps\n  just interfere with updating plugins.\n\nUse `:Obsess` (with optional file/directory name) to start recording to a\nsession file and `:Obsess!` to stop and throw it away.  That's it.  Load a\nsession in the usual manner: `vim -S`, or `:source` it.\n\nThere's also an indicator you can put in `'statusline'`, `'tabline'`, or\n`'titlestring'`.  See `:help obsession-status`.\n\n## Installation\n\nIf you don't have a preferred installation method, I recommend\ninstalling [pathogen.vim](https://github.com/tpope/vim-pathogen), and\nthen simply copy and paste:\n\n    cd ~/.vim/bundle\n    git clone https://github.com/tpope/vim-obsession.git\n    vim -u NONE -c \"helptags vim-obsession/doc\" -c q\n\n## Self-Promotion\n\nLike obsession.vim?  Follow the repository on\n[GitHub](https://github.com/tpope/vim-obsession) and vote for it on\n[vim.org](http://www.vim.org/scripts/script.php?script_id=4472).  And if\nyou're feeling especially charitable, follow [tpope](http://tpo.pe/) on\n[Twitter](http://twitter.com/tpope) and\n[GitHub](https://github.com/tpope).\n\n## License\n\nCopyright © Tim Pope.  Distributed under the same terms as Vim itself.\nSee `:help license`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-obsession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Fvim-obsession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-obsession/lists"}