I have setup a tags files in my project directory by running
ctags -R ., so then when I put the cursor on a word that is a tag and use the command
], vim "jumps" to that tag. Or more correctly, vim loads the file containing the tag in my current window and moves cursor to the tag definition.
This all works fine, however if I put the cursor on the tag and run the ex command
:ptag to open the tag definition in a preview window, I get
E73: tag stack empty
If I then use
] instead, again vim will open the tag fine, however, the original
:ptag command is obviously being remembered because when I use the
] command vim will open the tag in a preview window.
I notice vim reports this message regularly. I always just use
] and then vim will open the tag as intended.
The help doesn't give any useful background, from:
When you try to use the tag stack while it doesn't contain anything you will get an error message.
Its not plugins either, as the exact same behaviour happens when I open the file with:
vim -u NONE -N -U NONE
why do I keep getting this error message when I expect vim to jump to the tag definition?