Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track lines to prevent inconsistency on buffer reload from disk #159

Open
yuriescl opened this issue Nov 7, 2020 · 0 comments
Open

Track lines to prevent inconsistency on buffer reload from disk #159

yuriescl opened this issue Nov 7, 2020 · 0 comments

Comments

@yuriescl
Copy link

yuriescl commented Nov 7, 2020

Currently, if the file is modified on disk and :e is used to reload the buffer, the bookmark locations on that file will become incorrect if lines were added/removed from the file externally (not using the same vim instance).
This also happens with vim built-in marks.

There could be a more sophisticated tracking of the bookmarks to prevent losing them in case there's an external change to the file and the buffer is reloaded. Maybe save the line content when :w is used or something like that.

@yuriescl yuriescl changed the title Track lines to prevent inconsistency by buffer reload from disk Track lines to prevent inconsistency on buffer reload from disk Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants