how to jump to anchors?

Viki
xauser
2007-10-04
2013-04-17
  • xauser
    xauser
    2007-10-04

    Hi I can't get the "jump to anchors" feature to work. I'm
    on console vim 7.1 using full wiki mode.

    I have a setup like this

    PageA.viki
      PageB#test
      PageB#debug

    PageB.viki
      [--]#test
      [--]#debug
      ....
      %#test
      %#debug

    Now when I'm on PageA trying <Leader>vf on link "PageB#debug"
    I end somewhere in PageB but not at anchor "debug". When I'm
    on PageB trying <Leader>vf on link "[--]#debug" nothing happens.
    Am I doing something wrong?

     
    • Tom Link
      Tom Link
      2007-10-04

      > Now when I'm on PageA trying <Leader>vf on link "PageB#debug"
      > I end somewhere in PageB but not at anchor "debug".

      Well, most likely you end up at "[--]#debug". It seems this is a result
      of using a wrong value for b:vikiSimpleNameAnchorIdx, which in my
      current version was 5 but should be 6. Because of this viki searched for
      an anchor ##debug, didn't find it and then used "freemarker" as fallback
      strategy (assuming that b:vikiFreeMarker was true).

      I'll upload a new version this evening or tomorrow.