October 2015
Intermediate to advanced
356 pages
7h 54m
English
| Tip 104 | Navigate Keyword Definitions with Vim’s Tag Navigation Commands |
Vim’s ctags integration turns the keywords in our code into a kind of hyperlink, allowing us to jump rapidly to a definition. We’ll see how to use the Normal mode <C-]> and g<C-]> commands as well as their complementary Ex commands.
Pressing <C-]> makes our cursor jump from the keyword under the cursor to the definition. Here it is in action:
| Keystrokes | Buffer Contents | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{start} |
| ||||||||||||||
<C-]> |
|