2

When I use ctags in vim, CTRL-] always jumps to the first result. In the same code base, with cscope enabled in vim, CTRL-] no longer jumps directly, but instead gives me a selection (like :ts). How can I make it jump to the first result by default? I use :ts later when I need.

chris
  • 4,988
  • 20
  • 36
Victor
  • 347
  • 1
  • 6
  • 1
    I would be curious, too, but I'm afraid that's how cscope integration works in Vim. – romainl Apr 19 '13 at 06:34
  • I have never used cscope myself. But maybe you could use something like `au BufEnter *.c :nnoremap 1`. Does that work for you? – Daan Bakker Apr 19 '13 at 07:15
  • @Daan no, it doesn't work for two cases: when there is no match, or too many matches (over a page). – Victor Apr 19 '13 at 16:54

0 Answers0