lambdalisue / vim-fern

🌿 General purpose asynchronous tree viewer written in Pure Vim script
MIT License
1.29k stars 49 forks source link

Close fern buffer after opening file #378

Closed himat closed 2 years ago

himat commented 2 years ago

After I select a file within the fern viewer, it seems like the fern buffer is still available in vim

Which means that when I then do :b# to go back to my previous file, it is opening the fern buffer instead.

Is there a way to auto close the buffer after I select/open a file? I saw https://github.com/lambdalisue/fern.vim/wiki/Tips#close-fern-after-open but not really sure what "Close fern" means for that tip. Does it close the buffer or does it close all of fern somehow?

lambdalisue commented 2 years ago

It sounds fern behave properly in your case from your explanation.

I think using :b# is not a proper way to get back a previous file. Maybe what you need is https://github.com/Bakudankun/BackAndForward.vim or similar plugin.

himat commented 2 years ago

https://github.com/lambdalisue/fern.vim/wiki/Tips#close-fern-after-open What does "Close fern" exactly do?

lambdalisue commented 2 years ago

Close fern window.