In vim, I usually found declaration by taglist using C-]. When I wanted to go back, I hit the C-T for previous location.
I understand it can be done internally by push and pop tag stack. However, in ideavim C-T seems to be strange. I found in ideavim, C-T is to go back not only to tag stack location but also jump stack list.
It's so annoying for me to go back unwanted location. How can I achieve normal workflow for tag in ideavim?
IdeaVim doesn't emulate the tag stack (yet). Instead, it utilizes IntelliJ's "Navigate | Declaration" action for
CTRL-]
and it invokes "Navigate | Forward / Back" onCTRL-I
/CTRL-O
.IdeaVim currently treats
CTRL-T
just like an alias forCTRL-O
, so you don't have any real tag stack, see this nasty TODO item.Feel free to file a feature request about a proper emulation of the tag stack here https://youtrack.jetbrains.com/issues/VIM.