{"id":13479565,"url":"https://github.com/farmergreg/vim-lastplace","last_synced_at":"2025-12-12T00:24:05.373Z","repository":{"id":25682215,"uuid":"29118182","full_name":"farmergreg/vim-lastplace","owner":"farmergreg","description":"A vim / nvim plugin that intelligently reopens files at your last edit position.","archived":false,"fork":false,"pushed_at":"2024-05-18T01:15:12.000Z","size":82,"stargazers_count":613,"open_issues_count":4,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T07:06:38.763Z","etag":null,"topics":["debian","gvim","lastplace","linux","neovim","neovim-plugin","plugin","ubuntu","vim","vim-lastplace","vim-plugin","vim-plugins","vimrc","vimscript"],"latest_commit_sha":null,"homepage":"https://www.gregd.org/","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/farmergreg.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}},"created_at":"2015-01-12T04:11:35.000Z","updated_at":"2025-03-27T10:48:03.000Z","dependencies_parsed_at":"2023-12-02T23:28:35.939Z","dependency_job_id":"40e351d8-b9ae-4277-9cc3-a4c361e21bed","html_url":"https://github.com/farmergreg/vim-lastplace","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farmergreg%2Fvim-lastplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farmergreg%2Fvim-lastplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farmergreg%2Fvim-lastplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farmergreg%2Fvim-lastplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farmergreg","download_url":"https://codeload.github.com/farmergreg/vim-lastplace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142066,"owners_count":20890652,"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":["debian","gvim","lastplace","linux","neovim","neovim-plugin","plugin","ubuntu","vim","vim-lastplace","vim-plugin","vim-plugins","vimrc","vimscript"],"created_at":"2024-07-31T16:02:19.277Z","updated_at":"2025-12-12T00:24:05.314Z","avatar_url":"https://github.com/farmergreg.png","language":"Vim Script","readme":"# vim-lastplace v4.6.0\n\nA [vim](https://www.vim.org/) / [nvim](https://neovim.io/) plugin that intelligently reopens files at your last edit position.\n\n## Features\n* Immediately jump to the last edit position when editing a file.\n* Commit Messages\n    - Many version control systems re-use the same file for commit message editing.\n    - It does not make sense in this case to jump to the last edit position.\n    - vim-lastplace automatically detects this and starts with your cursor at the beginning of the file.\n* Maximize Context\n    - Center the cursor vertically after restoring last edit position.\n    - Keep as much of the file on screen as possible when last edit position is at the end of the file.\n* Opens folds if the last edit position is inside a fold.\n* Works properly with new file templates and scripts that jump to a specific line.\n\n## Install\n\n### vim:\nYou can install vim-lastplace as a vim plugin without any additional tools when using [vim](https://www.vim.org/) 8 or newer.\n\n```bash\nmkdir -p ~/.vim/pack/plugins/start\nrm -rf ~/.vim/pack/plugins/start/vim-lastplace\ngit clone --depth=1 https://github.com/farmergreg/vim-lastplace.git ~/.vim/pack/plugins/start/vim-lastplace\n```\n\n### neovim:\nYou can also install vim-lastplace and use it with [neovim](https://neovim.io/):\n\n```bash\nmkdir -p ~/.local/share/nvim/site/pack/plugins/start\nrm -rf ~/.local/share/nvim/site/pack/plugins/start/vim-lastplace\ngit clone --depth=1 https://github.com/farmergreg/vim-lastplace.git ~/.local/share/nvim/site/pack/plugins/start/vim-lastplace\n```\n\n## Configure\nYou can configure what file types to ignore by setting g:lastplace_ignore in your vimrc.\nThis is a comma separated list.\nBy default it is set to:\n\n```vim\n    let g:lastplace_ignore = \"gitcommit,gitrebase,hgcommit,svn,xxd\"\n````\n\nYou can configure buffer types to ignore by setting g:lastplace_ignore_buftype in your vimrc.\nThis is a comma separated list.\nBy default it is set to:\n\n```vim\n    let g:lastplace_ignore_buftype = \"help,nofile,quickfix\"\n```\n\nClosed folds are automatically opened when jumping to the last edit position.\nIf you do not like this behavior you can disable it by placing this in your vimrc:\n\n```vim\n    let g:lastplace_open_folds = 0\n```\n## Conflicting Scripts:\nDepending on which vim package you're using, vim may be preconfigured with last-edit-position logic that doesn't work as well as vim-lastplace.\nIf so, you may want to disable that in favor of vim-lastplace.\nFor example, for Vim as packaged with Git for Windows, you can edit `C:\\Program Files\\Git\\etc\\vimrc` and comment out the \"Remember positions in files\" `autocmd BufReadPost *` block.\n\n## Miscellaneous\nThis plugin is complete and stable.\nPlease do not be afraid to try it even if there is very little recent activity in this repository.\nIf you do find a bug, please submit a pull request that fixes whatever problem you're having.\n\n## Version History\nvim-lastplace uses [semver](http://semver.org/) to manage version numbers.\n\n### 4.6.0\n- Release Date: tbd\n- Restore column correctly when jumping to the end of a file. (Issue [#35](https://github.com/farmergreg/vim-lastplace/pull/35))\n\n### 4.5.0\n- Release Date: 2024-04-23\n- Improve README.md\n- Add xxd to g:lastplace_ignore\n- Alphabetize g:lastplace_ignore and g:lastplace_ignore_buftype\n\n### 4.4.0\n- Release Date: 2023-08-24\n- Use [keepjumps](https://github.com/farmergreg/vim-lastplace/pull/31) to prevent the addition of unwanted marks.\n- Fix a bug with folds not opening. (Issue [#30](https://github.com/farmergreg/vim-lastplace/issues/30))\n- Fix a bug when using multiple windows (Issue [#28](https://github.com/farmergreg/vim-lastplace/issues/28))\n- Documentation Updates\n    - vim8 installation documentation\n    - nvim installation documentation\n    - various other improvements\n    - pre-generated helptags\n\n### 3.2.1\n- Release Date: 2020-01-20\n- Re-center screen when opening folds\n- Documentation fixes and updates\n\n### 3.1.1\n- Release Date: 2017-06-19\n- Add 'nofile' and 'help' to lastplace_ignore_buftype. (Issue [#14](https://github.com/farmergreg/vim-lastplace/issues/14))\n- Do not jump when a new file is created (Issue [#15](https://github.com/farmergreg/vim-lastplace/issues/15), [#16](https://github.com/farmergreg/vim-lastplace/issues/16))\n\n### 3.1.0\n- Release Date: 2017-02-21\n- Add g:lastplace_ignore_buftype setting.\n- Update github links from username dietsche to farmergreg.\n\n### 3.0.4\n- Release Date: 2016-09-06\n- Add g:lastplace_open_folds option.\n\n### 3.0.3\n- Release Date: 2016-08-08\n- Point release for Debian packaging. Changes all http links to https. No code changes.\n\n### 3.0.2\n- Release Date: 2016-05-12\n- A fix for files that are smaller than the current screen size (issue #8)\n\n### 3.0.1\n- Release Date: 2016-01-16\n- A fix for files with modelines.\n\n### 3.0.0\n- Release Date: 2015-06-14\n- Open folds if the last edited area is inside a closed fold.\n\n### 2.0.1\n- Release Date: 2015-01-23\n- Add gitrebase filetype to the ignore list.\n\n### 2.0.0\n- Release Date: 2015-01-22\n- Center the screen when restoring the cursor position.\n- When at the end of a file, keep as much of it on screen as possible.\n\n### 1.0.0\n- Release Date: 2015-01-14\n- Initial version.\n\n## About\n\n- Author  :  Gregory L. Dietsche\n- Web Page: https://www.gregd.org/\n\nGet the latest version, submit pull requests, and file bug reports\non GitHub:\n- https://github.com/farmergreg/vim-lastplace\n\nIf you like this plugin, please star and rate it on these sites:\n\n- [GitHub](https://github.com/farmergreg/vim-lastplace)\n- [Vim.org](http://www.vim.org/scripts/script.php?script_id=5090)\n","funding_links":[],"categories":["Vim Script","Tools"],"sub_categories":["Interface"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarmergreg%2Fvim-lastplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarmergreg%2Fvim-lastplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarmergreg%2Fvim-lastplace/lists"}