I do this,
$ tree
.
├── dir1
│ ├── dir11
│ │ └── hello
│ └── dir12
│ └── hello
└── dir2
├── dir21
│ └── hello
└── dir22
└── hello
$ cd dir1/dir11
$ vim
then I open NERDTree, and see it shows
[ ]hello
then I press Shift+U twice, and NERDTree shows this:
▾ [ ]dir1/
▸ [ ]dir11/
▸ [ ]dir12/
▸ [ ]dir2/
whereas I expected this:
▾ [ ]dir1/
▾ [ ]dir11/
[ ]hello
▸ [ ]dir12/
▸ [ ]dir2/
Unless someone tells me it has always worked the former way, I'm pretty sure I relied on it working the latter way.
EDIT:
When I'm in the NERDTree window, :map U
gives back this:
n U *@:call nerdtree#ui_glue#invokeKeyMap("U")<CR>
u
. Are you sure you are using all default settings? – B Layer Sep 18 '20 at 22:39F
), i.e. to demonstrate directly you can hitF
thenUU
(not saying you did that, just demonstrating how it would replicate your unexpected result). Check all mappings and settings is my final comment for now. :) – B Layer Sep 18 '20 at 22:49u
, but the one I'd get by usinguU
. I'll check the mappings, however. – Enlico Sep 18 '20 at 23:11