1

I'm using slimv to create a small common lisp project. I would like a way to jump to the definition of a function I defined in another file. Is there a way to do that?'

Held
  • 25
  • 1
  • 3
  • 1
    `gd` should work if Vim recognizes that filetype. – Heptite Apr 26 '14 at 23:33
  • `gd` works only if the definition is in the same file. What do you mean by recognizing the file type? Code completion and syntax highlighting work. – Held Apr 26 '14 at 23:41
  • Under `:help gd` it points to `:help include-search` which points to `:help 'include'`. You may want to review these help sections, especially the last one. If you have filetype plugins enabled I would have assumed that the `'include'` option would have been properly configured for you, though. – Heptite Apr 27 '14 at 00:19
  • So the problems seems to be that you don't explicitly include files in lisp. They are listed in the package definition. No idea how to solve this though. Thanks for showing how to find the explanation:) – Held Apr 27 '14 at 00:27

1 Answers1

3

Take a look at exuberant ctags. It supports lisp.

After you generate a tags file you can use <C-]> to jump to the definition. Take a look at :h tags

FDinoff
  • 1,821
  • 1
  • 11
  • 19