vim-lastplace - Intelligently reopen files at your last edit position in Vim.

To update (replacing the current version) run webi vim-lastplace.

Files

These are the files / directories that are created and/or modified with this install:

~/.vim/pack/plugins/start/vim-lastplace/
~/.vim/plugins/lastplace.vim
~/.vimrc

Cheat Sheet

vim-lastplace will resume your cursor to its last position when you re-open a file, including re-opening folds as needed.

Simply put: installing this plugin will cause your cursor to be put back where you expect it when switching between files.

How to remove lastplace

rm -rf ~/.vim/pack/plugins/start/vim-lastplace

How to configure manually

See https://vim.fandom.com/wiki/Restore_cursor_to_file_position_in_previous_editing_session and https://github.com/farmergreg/vim-lastplace

Contribute

Report an Issue Submit Installer Star on GitHub