Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

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

Open
AndrewRayCode opened this issue May 21, 2015 · 3 comments
Open

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

AndrewRayCode opened this issue May 21, 2015 · 3 comments

Comments

@AndrewRayCode
Copy link

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-
Copy link
Contributor

rr- commented Aug 16, 2015

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

@minegit
Copy link

minegit commented Oct 27, 2016

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

@rtucek
Copy link

rtucek commented Jul 3, 2017

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants