From 3a333881d8d8a25d3e0716bdb222f4b782482df9 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Fri, 15 May 2015 11:03:14 +0200 Subject: [PATCH] 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 --- autoload/vimwiki/base.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index a8a38dd..32fd5d5 100644 --- 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