-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
sessionoptions: allow exclude nofile buffers from save #12242
Comments
I suppose there is a vim patch for this? That would be worth mentioning. PR welcome https://github.com/neovim/neovim/wiki/Merging-patches-from-upstream-Vim |
I did not see any equivalent in Vim (8.2.0510-1). I am not familiar with C and so unable to make any reasonable patch. |
is this feature in Vim or not? |
Not. |
This comment was marked as spam.
This comment was marked as spam.
…everting to old behavior until the neovim bug is fixed upstream: neovim/neovim#12242
…is neovim bug is fixed → neovim/neovim#12242
At least change it to |
Lines 197 to 201 in 0792cf7
|
After executing local bufname = 'nofileBuffer'
local buf = vim.fn.bufadd(bufname)
vim.bo[buf].buflisted = true
vim.cmd([[set sessionoptions-=blank]])
vim.cmd.mksession({bang = true})
badd +0 nofileBuffer
Four years after this issue was created I use a custom command that cleans environment before |
Apparently, it also checks for |
Actual behaviour
Currently (
neovim-0.5.0+ubuntu1+git202005022020-d13c164-00e710e
)mksession
does not allow excludenofile
buffers (NERDTree windows for example) usingsessionoptions
.Expected behaviour
Nothing more than the title says.
The text was updated successfully, but these errors were encountered: