ctags, vimwiki, vim and tagbar-plugin

若如初见. 提交于 2019-12-05 18:47:36
  • thanks to Jan Larres hint with :echo &ft I found the solution.
  • moving ctags.cnf to the user profile path is useful, too.

My updated _vimrc

let g:tagbar_type_vimwiki = {
\ 'ctagstype' : 'vimwiki',
\ 'kinds'     : [
\ 'h:header',
\ ],
\ 'sort'    : 0
\ }

and my updated ctags.cnf

--langdef=vimwiki
--langmap=vimwiki:.wiki
--regex-vimwiki=/^=[ \t]+(.+)[ \t]+=$/\1/h,header/
--regex-vimwiki=/^==[ \t]+(.+)[ \t]+==$/. \1/h,header/
--regex-vimwiki=/^===[ \t]+(.+)[ \t]+===$/.   \1/h,header/
--regex-vimwiki=/^====[ \t]+(.+)[ \t]+====$/.     \1/h,header/
--regex-vimwiki=/^=====[ \t]+(.+)[ \t]+=====$/.       \1/h,header/
--regex-vimwiki=/^======[ \t]+(.+)[ \t]+======$/.         \1/h,header/ 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!