brew install ctags
- Install
ctags.vim
bundle viagit://github.com/vim-scripts/ctags.vim.git
- Add the following line to your .vimrc
let Tlist_Ctags_Cmd="/usr/local/bin/ctags"
let Tlist_WinWidth=50
map <F8> :!/usr/local/bin/ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
map <F4> :TlistToggle<cr>
- (Optional) Remap your tagsearch key binding
nnoremap <c-]> g<c-]>
vnoremap <c-]> g<c-]>
- While in Vim, press
<F8>
to generate the tags on your current directory - Cursor on method/class name, press
Ctrl-]
to bring up the list of matching tags - If you would like to generate ctags for your gemset as well, check out
https://github.com/tpope/gem-ctags