1

I am using the Lid.vim plugin to navigate my C++ project. Once I run :Lid, it shows me the list of matching tags in the quickfix window.

When I switch to the quickfix window, select the occurence I'm interested in and press Enter it produces an error:

E73: tag stack empty

and does not go to the location.

Instead of Enter if I use Ctrl-Enter it opens a new window and goes to the location correctly.

I want to open the quickfix location in the current window itself. Why is this error happening?

7
  • 2
    Maybe that's something you should talk about with the author.
    – romainl
    Commented May 28, 2015 at 16:11
  • This is not just the Lid.vim plugin. I have had this issue with ctags as well before.
    – woodstok
    Commented May 28, 2015 at 16:20
  • Enter is implemented internally as :.cc (it's actually :.cc for quickfix lists and :.ll for location lists). Does the problem still occur if you run :cc?
    – lcd047
    Commented May 29, 2015 at 7:00
  • Using :.cc works . But Enter is not. Why is that?
    – woodstok
    Commented May 29, 2015 at 12:36
  • You have a plugin that maps Enter to something else.
    – lcd047
    Commented Jun 6, 2015 at 16:17

1 Answer 1

1

The issue was that i had a mapping map <C-m> :tnext<CR> in my vimrc . In vim, <C-m> is equivalent to Enter. More detailed answer at how to map Ctrl-m without affecting return keypress

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.