vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 3a333881d8d8a25d3e0716bdb222f4b782482df9
parent 8bbe0408f983f8627a3e3bac7c29d5d51055f7af
Author: EinfachToll <istjanichtzufassen@googlemail.com>
Date:   Fri, 15 May 2015 11:03:14 +0200

When jumping to anchor, tags have highest precedence

Otherwise, in the list generated by VimwikiGenerateTags, Vimwiki would
jump to the header of the concerning tag rather than to the tag

Ref #85

Diffstat:
Mautoload/vimwiki/base.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim @@ -692,9 +692,9 @@ function! s:jump_to_anchor(anchor) "{{{ let anchor_tag = substitute(g:vimwiki_{VimwikiGet('syntax')}_tag_match, \ '__Tag__', "\\='".segment."'", '') - if !search(anchor_header, 'Wc') + if !search(anchor_tag, 'Wc') + \ && !search(anchor_header, 'Wc') \ && !search(anchor_bold, 'Wc') - \ && !search(anchor_tag, 'Wc') call setpos('.', oldpos) break endif