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
This commit is contained in:
EinfachToll 2015-05-15 11:03:14 +02:00
parent 8bbe0408f9
commit 3a333881d8

View File

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