ctags in Vim - Quick Cheatsheet
Consider using modern stuff like LSP over ctags
Setup
Install universal-ctags. Support languages like C/C++, Markdown, HTML, Java, Go, Javascript, Python, Shell scripts
Run the command
ctags -R *
inside project folderOptionally Install fzf.vim which offers fuzzy searching over tags available using
:Tags
command
Usage
Ctrl + ]
: Jump to tag underneath cursorCtrl + t
: Jump back up in tag stackCtrl + W Ctrl + ]
- Open the definition in a horizontal split
Last updated