Twee support in ctags

To be able to jump between functions in vim:

  1. Install tagbar plugin.

  2. Add this to ~/.ctags file

--langdef=twee
--langmap=twee:.twee.twee2
--regex-twee=/^::([a-zA-Z0-9_$]+)/\1/f,functions/
  1. And this to ~/.vimrc file:
let g:tagbar_type_twee = {
  \ 'ctagstype' : 'twee',
  \ 'kinds'     : [
    \ 'f:functions',
  \ ]
\ }

I’m too lazy to add link regexes right now but hey this is a thread so I hope this will be useful for someone.

1 Like