Auto close defx buffer after opening a new file or dir
See original GitHub issueHi, @Shougo.
Is there a better way to automatically close the defx buffer whenever I complete an defx#do_action('open')
? I’m doing this way:
autocmd BufReadPre,FileReadPre * call s:DelDefxBuffer()
function! s:DelDefxBuffer()
if bufexists("[defx]")
exe 'bdelete \[defx\]'
endif
endfunction
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
SpaceVim/SpaceVim - Gitter
1. Since I've started using SpaceVim I've been using ctrlspace for project bookmarks and navigating between buffers. It's working almost fine with vimfiler....
Read more >Defx cool extensions : r/neovim - Reddit
Close defx if it's the only buffer left in the window autocmd WinEnter * if &ft ... and is there a way when...
Read more >Editing - Neovim docs
vim testfile [change the buffer with editor commands] :w newfile :q. This will create a file ... +{command} Execute {command} after opening the...
Read more >Find and highlight current file in netrw
Not for opening/closing files or general file management, ... I open netrw automatically when I open gVim, and keep it open to the...
Read more >Defx: file explorer plugin for Neovim - eed3si9n
To jump to a file after expanding a tree, we can use / to search in the buffer. To close the recursively opened...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have checked the sreencasts. The feature is already implemented, so the problem is gone.
If you just want to hide it from buffers list, try this:
autocmd FileType defx setlocal nobuflisted