{"id":13927070,"url":"https://github.com/zhimsel/vim-stay","last_synced_at":"2025-05-01T10:31:14.430Z","repository":{"id":26576144,"uuid":"30030441","full_name":"zhimsel/vim-stay","owner":"zhimsel","description":"Make Vim persist editing state without fuss","archived":false,"fork":false,"pushed_at":"2023-07-07T14:57:04.000Z","size":137,"stargazers_count":163,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T12:40:27.877Z","etag":null,"topics":["vim","vim-script","vim-scripts","vim-session","vim-stay"],"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/zhimsel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2015-01-29T16:48:45.000Z","updated_at":"2025-03-29T14:43:48.000Z","dependencies_parsed_at":"2024-11-12T10:01:56.645Z","dependency_job_id":"bb37db9d-ff55-4af0-b18d-66efeab2d81b","html_url":"https://github.com/zhimsel/vim-stay","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhimsel%2Fvim-stay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhimsel%2Fvim-stay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhimsel%2Fvim-stay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhimsel%2Fvim-stay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhimsel","download_url":"https://codeload.github.com/zhimsel/vim-stay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251859851,"owners_count":21655629,"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":["vim","vim-script","vim-scripts","vim-session","vim-stay"],"created_at":"2024-08-07T16:01:22.889Z","updated_at":"2025-05-01T10:31:14.425Z","avatar_url":"https://github.com/zhimsel.png","language":"Vim Script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# Stay at my cursor, boy!\n\n[![Project status][badge-status]][vimscripts]\n[![Current release][badge-release]][releases]\n[![Open issues][badge-issues]][issues]\n[![License][badge-license]][license]\n[![Lint status][badge-lint]][job-lint]\n\n*vim-stay* adds automated view session creation and restoration whenever editing a buffer, across Vim sessions and window life cycles. It also alleviates Vim's tendency to lose view state when cycling through buffers (via `argdo`, `bufdo` et al.). It is smart about which buffers should be persisted and which should not, making the procedure painless and invisible.\n\nIf you have wished Vim would be smarter about keeping your editing state, *vim-stay* is for you.\n\n## Installation\n\n1. The old way: download and source the vimball from the [releases page][releases], then run `:helptags {dir}` on your runtimepath/doc directory. Updating the plug-in via `:GetLatestVimScripts` is supported. Or,\n1. The plug-in manager way: using a git-based plug-in manager (Pathogen, Vundle, NeoBundle, Vim-Plug etc.), simply add `zhimsel/vim-stay` to the list of plug-ins, source that and issue your manager's install command. Or,\n1. The Vim package way (requires Vim 7.4 with patch 1384): create a `pack/vim-stay/start/` directory in your `'packagepath'` and clone this repository into it. Run `:helptags {dir}` on the `doc` directory of the created repo. Run `:runtime plugin/stay.vim` to load *vim-stay* (or restart Vim).\n\n## Usage\n\nRecommended: `set viewoptions=cursor,folds,slash,unix` (but at the very least do `set viewoptions-=options`). Edit as usual. See the [documentation][doc] for more.\n\n## Rationale\n\nKeeping editing session state should be a given in an editor; unluckily, Vim's solution for this, *view sessions*, are not easily automated [without encountering painful bumps][mkview-wikia]. As the one plug-in available that aimed to fix this, Zhou Yi Chao’s [*restore_view.vim*][chao-plugin], limited itself to Vim editing sessions, didn’t play well with other position setting plug-ins like [vim-fetch][vim-fetch] and as there were [some issues with its heuristics][heuristics], *vim-stay* was born.\n\n## License\n\n*vim-stay* is licensed under [the terms of the MIT license according to the accompanying license file][license].\n\n[badge-status]:  https://img.shields.io/badge/status-maintained-green.svg?style=flat-square\n[badge-release]: https://img.shields.io/github/release/zhimsel/vim-stay.svg?style=flat-square\n[badge-issues]:  https://img.shields.io/github/issues/zhimsel/vim-stay.svg?style=flat-square\n[badge-license]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n[badge-lint]:    https://img.shields.io/github/actions/workflow/status/zhimsel/vim-stay/lint.yaml?label=linting\n[job-lint]:      https://github.com/zhimsel/vim-stay/actions/workflows/lint.yaml\n[chao-plugin]:   http://www.vim.org/scripts/script.php?script_id=4021\n[doc]:           doc/vim-stay.txt\n[heuristics]:    https://github.com/zhimsel/vim-stay/issues/2\n[issues]:        https://github.com/zhimsel/vim-stay/issues\n[license]:       LICENSE.md\n[mkview-wikia]:  http://vim.wikia.com/wiki/Make_views_automatic\n[releases]:      https://github.com/zhimsel/vim-stay/releases\n[vim-fetch]:     http://www.vim.org/scripts/script.php?script_id=5089\n[vimscripts]:    http://www.vim.org/scripts/script.php?script_id=5099\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhimsel%2Fvim-stay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhimsel%2Fvim-stay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhimsel%2Fvim-stay/lists"}