jistr / vim-nerdtree-tabs

NERDTree and tabs together in Vim, painlessly
Apache License 2.0
1.43k stars 130 forks source link

NTTabs errors if window "zoomed" with ctrl-w o #68

Open AndrewRayCode opened 9 years ago

AndrewRayCode commented 9 years ago

The shortcut ctrl-w o maximizes a pane :h CTRL-W_o. It can be hit again to undo the minimization. If nerdtreetabs is toggled during the zoom in time, it gets in a bad way. It will no longer be open when you go to any other tab (even after zooming out). If you switch to another tab after opening it in zoomed mode, this error appears:

Error detected while processing function <SNR>76_TabEnterHandler..<SNR>76_RestoreNERDTreeViewIfPossible:
line   16:
E16: Invalid range: 2wincmd w
Error detected while processing function <SNR>76_TabEnterHandler..<SNR>76_RestoreFocus:
line    2:
E16: Invalid range: 2wincmd w

It doesn't seem possible to get back to the regular nerdtree setup until vim is restarted(!).

rr- commented 9 years ago

I get it all the time as well, but during tab cycling. See issue linked above.

minegit commented 8 years ago

It happens for me when I cycle through tabs when NERDTree tab is open as by default. Any solutions for this.

rtucek commented 7 years ago

I get a similar error:

Error detected while processing function <SNR>55_TabEnterHandler[16]..<SNR>55_RestoreNERDTreeViewIfPossible:
line   20:
E16: Invalid range: 2wincmd w
Press ENTER or type command to continue

I don't know how to trigger/reproduce the error, but it happens usually after codding a few hours.

After the error is initially triggered you get the error message above every time when I change the tab with NerdTree open.

@jistr do you have any idea how to fix this?