Getting started with ctags + Vim on MacOS

Installation

If you’re on Mac then I would suggest downloading an upgraded version with homebrew:

brew install ctags
alias ctags="`brew --prefix`/bin/ctags"
alias ctags >> ~/.bashrc
echo "set tags=tags" >> ~/.vimrc

Using it

Navigate to the source directory and type:

ctags -R .
vim
Ctrl + ]
Ctrl + T
Ctrl + W  Ctrl + ]
Ctrl + W  Ctrl + (arrow key)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alex Galea

Alex Galea

Python Data Engineer, MSc. Physics