"Tag" feature provides us with ability to jump right to the target definition of struct, class, enum, macro definitions, or many things we could do while we're coding.
Scenario: You want to know the declaration or definition of a certain function name. Instead of manually do a text search against the whole code base, or manually navigate through the filesystem to find a right file before searching for the right content. We could use the power of Vim's tag.
Anyway, we need external tools "ctags" to generate such tags file before letting Vim works for us.
This video I present to you 5 ways to navigate "tag(s)" right inside Vim both in full command, and short keys via key binding.
Quick jump to the specific way as follows
0:00 Introduction
1:00 Ctag tools to generate tags file
2:34 tags file content
3:40 1. Direct
5:41 2. Select
7:21 3. Preview
9:21 4. Split
10:32 5. New Tab
12:30 Summary
#vim #tag #haxpor
---
Follows on social
Website: https://wasin.io
Github: https://github.com/haxpor