when exiting vim and then re-entering, all bookmarks have gone
have found out how to remember last position between files, but not how to remember bookmarks after having exited.
is there a way to configure vim so that bookmarks are remembered for a file?
Yes. Add the following to your
.vimrc:But note:
So you’ll need to use uppercase or numeric marks.
See:
:he 21.3:he E20…for more information.
You may also find
:mksessionuseful if you want to save session state.