Vim Lastplace Versions Save

A vim / nvim plugin that intelligently reopens files at your last edit position.

v4.5.0

3 weeks ago

Ignore the xxd filetype (hex file editing) by default. Minor code base cleanup.

Full Changelog: https://github.com/farmergreg/vim-lastplace/compare/v4.4.0...v4.5.0

v4.0.0

8 months ago

A vim / nvim plugin that intelligently reopens files at your last edit position.

Features

  • Commit Messages
    • Many version control systems re-use the same file for commit message editing.
    • vim-lastplace treats each commit message as if it were a new file because you probably want to type a new message and not re-edit the previous commit message.
  • Maximizes Context
    • Center the cursor vertically after restoring last edit position.
    • Keep as much of the file on screen as possible when last edit position is at the end of the file.
  • Opens folds if the last edit position is inside a fold.
  • Works properly with new file templates and scripts that jump to a specific line in them.

What's Changed

New Contributors

Full Changelog: https://github.com/farmergreg/vim-lastplace/compare/v3.2.1...v4.0.0

v3.2.1

4 years ago

About

Automatically jump to the last edit position when you open a file using vim.

Advantages

Advantages over the snippets that can be found around the net include:

  • Maximizes Available Context
    • Center the cursor vertically after restoring last edit position.
    • Keep as much of the file on screen as possible when last edit position is at the end of the file.
  • Commit messages automatically start beginning of the file. This is important because many version control systems re-use the same file for commit message editing.
  • Opens folds if the last edit position is inside a fold.

New Features

  • Updated documentation
  • Centering text on screen when folds are opened.

v3.1.1

6 years ago

Advantages

Advantages over the snippets that can be found around the net include:

  • Maximizes Available Context
    • Center the cursor vertically after restoring last edit position.
    • Keep as much of the file on screen as possible when last edit position is at the end of the file.
  • Commit messages automatically start beginning of the file. This is important because many version control systems re-use the same file for commit message editing.
  • Opens folds if the last edit position is inside a fold.

New Features

This is a bug-fix release.

v3.1.0

7 years ago

Advantages

Advantages over the snippets that can be found around the net include:

  • Maximizes Available Context
    • Center the cursor vertically after restoring last edit position.
    • Keep as much of the file on screen as possible when last edit position is at the end of the file.
  • Commit messages automatically start beginning of the file. This is important because many version control systems re-use the same file for commit message editing.
  • Opens folds if the last edit position is inside a fold.

New Features

You can now configure buffer types to ignore by setting g:lastplace_ignore_buftype in your vimrc. This is a comma separated list. By default it is set to:

    let g:lastplace_ignore_buftype = "quickfix"

v3.0.4

7 years ago

Intelligently reopen files at your last edit position. By default git, svn, and mercurial commit messages are ignored because you probably want to type a new message and not re-edit the previous one.

Advantages

Advantages over the snippets that can be found around the net include:

  • Maximizes Available Context
    • Center the cursor vertically after restoring last edit position.
    • Keep as much of the file on screen as possible when last edit position is at the end of the file.
  • Commit messages automatically start beginning of the file. This is important because many version control systems re-use the same file for commit message editing.
  • Opens folds if the last edit position is inside a fold.

New in this release: Added a setting g:lastplace_open_folds to control behavior when the last edit position is inside a fold.

v3.0.3

7 years ago

Intelligently reopen files at your last edit position. By default git, svn, and mercurial commit messages are ignored because you probably want to type a new message and not re-edit the previous one.

Advantages

Advantages over the snippets that can be found around the net include:

  • Maximizes Available Context
    • Center the cursor vertically after restoring last edit position.
    • Keep as much of the file on screen as possible when last edit position is at the end of the file.
  • Commit messages automatically start beginning of the file. This is important because many version control systems re-use the same file for commit message editing.
  • Opens folds if the last edit position is inside a fold.

New in this release: updated documentation to aid Debian packaging effort.

v3.0.2

8 years ago

Intelligently reopen files at your last edit position. By default git, svn, and mercurial commit messages are ignored because you probably want to type a new message and not re-edit the previous one.

Advantages

Advantages over the snippets that can be found around the net include:

  • Maximizes Available Context
    • Center the cursor vertically after restoring last edit position.
    • Keep as much of the file on screen as possible when last edit position is at the end of the file.
  • Commit messages automatically start beginning of the file. This is important because many version control systems re-use the same file for commit message editing.
  • Opens folds if the last edit position is inside a fold.