vim-nerdtree-tabs icon indicating copy to clipboard operation
vim-nerdtree-tabs copied to clipboard

nerdtree-tabs seems to break VimLeave in neovim

Open mediocregopher opened this issue 9 years ago • 7 comments
trafficstars

If I use the following init.vim

call plug#begin('~/.config/nvim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'jistr/vim-nerdtree-tabs'
call plug#end()
autocmd vimenter * NERDTreeToggle
autocmd VimLeave * :!touch /tmp/vimleave

And open a file, focus on the file pane (as opposed to the NERDTree pane) and do :q then /tmp/vimleave is never created. If I do :qa instead then it is created. Also, if I simply comment out the Plug 'jistr/vim-nerdtree-tabs' line it will also be created no matter how I close vim. So it seems the nerdtree-tabs suppresses VimLeave in some weird way. Let me know if there's anything else you need to help debug this, thanks!

mediocregopher avatar Apr 25 '16 23:04 mediocregopher

I'm seeing this as well.

erahhal avatar Dec 21 '16 00:12 erahhal

Same behaviour here.

qazip avatar May 06 '17 11:05 qazip

What is the best workaround for this currently? Other than periodically killing off the processes.

gainhagenau avatar Sep 27 '17 18:09 gainhagenau

I made a tiny investigation. The problem in this part of the code.

Invoking of q suppress VimLeave. #92 should fix this without repeat of #84

Felixoid avatar Mar 29 '18 11:03 Felixoid

Thanks @Felixoid . Any folks willing to test PR #92 whether it also fixes this issue for them without hitting #84?

As the readme states, i'm no longer actively mainaining this project (i don't use vim anymore), but i can merge the PR if others are willing to test it.

jistr avatar Apr 08 '18 13:04 jistr

@jistr Let's merge, maybe? Nobody complains at least =)

Felixoid avatar Apr 27 '18 09:04 Felixoid

@Felixoid alright.

jistr avatar May 05 '18 15:05 jistr