Skip to main content
11 events
when toggle format what by license comment
Jan 25, 2023 at 14:50 comment added Matt @D.BenKnoble I don't see why should I dig into the source code while even :h 'bufhidden' upholds this (pretty obvious, I believe) assertion.
Jan 25, 2023 at 14:42 comment added D. Ben Knoble Perhaps by "reference" @job_start means "citation" or "source"—it is standard to provide evidence for claims. For example, the "when" question is answered by :help bufhidden's first sentence.
Jan 24, 2023 at 19:00 comment added Matt What it does is "bdelete". But what exactly does "bdelete" is yet another question.
Jan 24, 2023 at 18:52 comment added NeoZoom.lua By reference, I meant for example (if possible) you could show a reference to the source code where it indeed shows some "dealloc"s are called when the event BufWinLeave happens. This way if someone else asks me the same then I can confidently use/post your answer as a reference, too. Nevermind, I will remember your answer and try to prove it myself in the future.
Jan 24, 2023 at 18:49 vote accept NeoZoom.lua
Jan 24, 2023 at 18:48 history edited NeoZoom.lua CC BY-SA 4.0
Superfluous updates to change my vote. I didn't touch any wording of existing answer.
Jan 24, 2023 at 18:45 comment added NeoZoom.lua OK, I believe your words. So my conclusion is: This kind of buffer "directory" is a buffer that will be deleted immediately on BufWinLeave when it disappears from all of my tabpages. By "deleted" it means the data structure will be freed (so it's null, not just empty), correct?
Jan 24, 2023 at 18:35 comment added Matt Your problem that you read very unattentively. The buftype option value is "nofile". "Directory" is "kind of", that is an informal explanation what that thing could be used for. It appears nowhere else. Also, I don't understand what is "a reference"? I tell what I know, and I know pretty much, when it comes to Vim, I dare say.
Jan 24, 2023 at 18:19 comment added NeoZoom.lua "when BufWinLeave event gets triggered": Do you have any reference for your words?
Jan 24, 2023 at 18:11 comment added NeoZoom.lua "Also, there's no "directory" buftype": Yes, there is. I'm using neovim and it's under the section :h special-buffers. The title of that manual is VIM REFERENCE MANUAL by Bram Moolenaar.
Jan 24, 2023 at 17:42 history answered Matt CC BY-SA 4.0