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

Keep marks when saving on binary file #44

Open
mjsir911 opened this issue Feb 2, 2024 · 2 comments
Open

Keep marks when saving on binary file #44

mjsir911 opened this issue Feb 2, 2024 · 2 comments

Comments

@mjsir911
Copy link
Contributor

mjsir911 commented Feb 2, 2024

When I :w when editing a binary file with vim -b <filename>, all my marks get deleted. This is especially frustrating when undoing a change and saving and not staying on the same line that I was on before saving.

I see that you use winsaveview, it looks like that doesn't include marks. Maybe something to do with :loc or getloclist or getmarklist (although I'm not sure how to restore from these)

@fidian
Copy link
Owner

fidian commented Feb 3, 2024

I've mentioned this in other issues but it bears repeating here. I'm not fluent in vimscript and I've just decided to host a copy of this script in GitHub so updates and fixes could be made.

It would be extremely welcome if anyone viewing this issue would be able to help out and update the script to address this problem. Without outside assistance, I'm positive that I won't be able to make the changes myself - vim is still quite a mystery to me.

@mjsir911
Copy link
Contributor Author

mjsir911 commented Feb 3, 2024

Appreciate you stewarding this project @fidian, yeah I'm just filing this for a time where someone (maybe me) can come along to take a stab at this.

ty again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants