You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I press go in NERDTree window it usually switch current tab to first or second, I realized it only happens when I use my own remapping for gt (I prefer it be relative when I specify {count} for it, I use ,gt as default gt behavior):
When I press
go
in NERDTree window it usually switch current tab to first or second, I realized it only happens when I use my own remapping forgt
(I prefer it be relative when I specify{count}
for it, I use,gt
as defaultgt
behavior):When I remove these lines from my config everything goes well.
Environment: My config is pretty complex: https://github.com/unclechu/neovimrc (https://github.com/unclechu/neovimrc/tree/de98da753cfe6a2667b52fb03b565253a98226e2) but my point it is only connected to these
map
s forgt
.Anyway, you could reproduce it with this minimal config:
Process: List the steps that will recreate the issue.
Current Result:
I switched to another tab.
Expected Result:
Just open this file (under cursor) in the same tab and cursor supposed to stay in NERDTree window.
Optional
Screenshot(s):
I just recorded a screencast to demonstrate it (also with minimal config):
https://youtu.be/WwCxZ9v_gTQ
Possible Fix:
I haven't discovered the code but maybe it happens because somewhere in NERDTree map for
go
set bymap
instead ofnoremap
?The text was updated successfully, but these errors were encountered: