title: ctags, vimwiki, vim and tagbar-plugin
body: <p>I try to create tags for a wiki-file = vimwiki.
  This is my definition for ctags, stored as <code>ctags.cnf</code></p>
  
  <pre><code>--langdef=vimwiki
  --langmap=vimwiki:.wiki
  --regex-vimwiki=/^=[ \t]+(.*)/\1/h,heading1/
  --regex-vimwiki=/^==[ \t]+(.*)/2-\1/h,heading2/
  --regex-vimwiki=/^===[ \t]+(.*)/3-\1/h,heading3/
  --regex-vimwiki=/^====[ \t]+(.*)/4-\1/h,heading4/
  </code></pre>
  
  <p>Calling <code>ctags --verbose index.wiki</code> results in:</p>
  
  <pre><code>...
  Considering option file .\ctags.cnf: reading...
    Option: --langdef=vimwiki
    Option: --langmap=vimwiki:.wiki
      Setting vimwiki language map: .wiki
    Option: --regex-vimwiki=/^=[ \t]+(.*)/\1/h,heading1/
    Option: --regex-vimwiki=/^==[ \t]+(.*)/2-\1/h,heading2/
    Option: --regex-vimwiki=/^===[ \t]+(.*)/3-\1/h,heading3/
    Option: --regex-vimwiki=/^====[ \t]+(.*)/4-\1/h,heading4/
  Reading initial options from command line
  Reading command line arguments
  OPENING index.wiki as vimwiki language file
  sorting tag file
  </code></pre>
  
  <p>The generated <code>tags</code> file shows this:</p>
  
  <pre><code>!_TAG_FILE_FORMAT   2   /extended format; --format=1 will not append ;" to lines/
  !_TAG_FILE_SORTED   1   /0=unsorted, 1=sorted, 2=foldcase/
  !_TAG_PROGRAM_AUTHOR    Darren Hiebert  /dhiebert@users.sourceforge.net/
  !_TAG_PROGRAM_NAME  Exuberant Ctags //
  !_TAG_PROGRAM_URL   http://ctags.sourceforge.net    /official site/
  !_TAG_PROGRAM_VERSION   5.8 //
  2-!KnowledgeBase == index.wiki  /^== !KnowledgeBase ==$/;"  h
  2-Dokumentation ==  index.wiki  /^== Dokumentation ==$/;"   h
  2-Entwicklung ==    index.wiki  /^== Entwicklung ==$/;" h
  2-Essential Tools ==    index.wiki  /^== Essential Tools ==$/;" h
  2-TODO ==   index.wiki  /^== TODO ==$/;"    h
  2-Vim-Mode in shell / bash /zsh ==  index.wiki  /^== Vim-Mode in shell \/ bash \/zsh ==$/;" h
  3-@home === index.wiki  /^=== @home ===$/;" h
  3-Clojure ===   index.wiki  /^=== Clojure ===$/;"   h
  3-HTML5 &amp; CSS3 ===  index.wiki  /^=== HTML5 &amp; CSS3 ===$/;"  h
  3-LaTeX === index.wiki  /^=== LaTeX ===$/;" h
  3-Online-Tools ===  index.wiki  /^=== Online-Tools ===$/;"  h
  3-Open Source ===   index.wiki  /^=== Open Source ===$/;"   h
  3-Vim ===   index.wiki  /^=== Vim ===$/;"   h
  3-Wetware ===   index.wiki  /^=== Wetware ===$/;"   h
  4-git ====  index.wiki  /^==== git ====$/;" h
  4-nosql ====    index.wiki  /^==== nosql ====$/;"   h
  Self Org =  index.wiki  /^= Self Org =$/;"  h 
  </code></pre>
  
  <p>In my <code>_vimrc</code> i added</p>
  
  <pre><code>let g:tagbar_type_wiki = {
  \ 'ctagstype' : 'vimwiki',
  \ 'kinds'     : [
  \ 'h:headings'
  \ ],
  \ 'sort'    : 0,
  \ 'deffile' : expand('&lt;sfile&gt;:p:h:h') . 'c:\\d\\ctags.cnf'
  \ }
  </code></pre>
  
  <p>Opening index.wiki and <code>:TagbarToggle</code> opens only a empty tagbar.</p>
  
  <p>Where's my error?</p>