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

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

Open AndrewRayCode opened this issue 10 years ago • 3 comments
trafficstars

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(!).

AndrewRayCode avatar May 21 '15 00:05 AndrewRayCode

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

rr- avatar Aug 16 '15 12:08 rr-

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

minegit avatar Oct 27 '16 07:10 minegit

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?

rtucek avatar Jul 03 '17 14:07 rtucek