By pure coincidence, I hit CTRL+w and then Tab while editing a C++ file, and what happened is that the window was horizontally split and the new window loaded the buffer where the word under the entity was presumably defined.
I can reproduce this behavrior even with vim -Nu NONE thatfile.cpp
.
Then I tried the same with the cursor on std::cout
, but that gave me a E387, which at least led me to a seemingly relevant documentation page, but that page has no match for the regex \cctrl-w.*\_..*tab
, so I assume I'm in the wrong place.
On the other hand, that page seems to describe something similar to what I'm observing, even if it associates it to another combo:
To split the current window and jump to the tag under the cursor use this command:
CTRL-W ]
But with CTRL+w,] I get E433 and E426 if my cursor is on std::cout
, for instance.
To be precise, the jump is not exactly accurate. If I'm on filter
on last line, CTRL+w, Tab leads me to /usr/include/meta/meta.hpp
, whereas it should bring me to /usr/include/range/v3/view/filter.hpp
, as YouCompleteMe does.
So, what am I seeing?