-
Notifications
You must be signed in to change notification settings - Fork 305
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
Unusable file-marks "VS.Vim.Buffer.Default" building up in viminfo #1337
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump |
Can you try sending PR here first? https://github.com/hrsh7th/vim-vital-vs |
Finally, I understand the problem. I'll look this. |
Alright! I'll be here if you need me. @romainl and me had a chat about this, I thought you'd appreciate this, even if he does not think it seems like an issue I'm certain I tested it in multiple ways last time I tested. I tried just now (after not sleeping for 18hrs, so bear with me....)
I could avoid the issue with @romainl pointed out he could do without the globs, (I personally couldn't get it to work)
Nevertheless I don't see a reason why this should be a solution (with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
vim-lsp/autoload/vital/_lsp/VS/Vim/Buffer.vim
Line 54 in 14f9ab3
The above line adds a named buffer. Since only unnamed buffers are skipped by viminfo vim-lsp leaves file-marks in
viminfo
when enabled. This seems unnecessary for a temporary buffer, and'viminfo'
-option isglobal
-only with no buffer-local equvalent. There is only:help viminfo-r
-flag for excluding paths which only works with real files (and can't use globbing to work around it afaik, I have tried).You can find entries such as:
The name here is
VS.Vim.Buffer: 1: VS.Vim.Buffer.Default
and appears after starting an empty vim session (the hidden buffer is available on:b 2
in empty vim-session or can be shown with:ls!
.This also affects other functionality such as
v:oldfiles
,:browse oldfiles
that uses viminfo file-marks to build the list.Since the name includes buffer-id, this will grow over time. But these temporary buffers have never been files and the file-marks has no use.
If started in another directory ~/src/vim/, its starting to build up another pile under a new namespace.
There is no obvious workaround to this as as there is no way to control which named buffers vim saves file-marks for.
An alternative could be global variables (viminfo-!), if this needs to be stored.
The text was updated successfully, but these errors were encountered: