When pressing S-Tab, always jump to prev link
not to the start of the link the cursor is on
This commit is contained in:
parent
f5634c92e1
commit
96dfabb03b
@ -904,6 +904,11 @@ endfunction " }}}
|
||||
|
||||
" vimwiki#base#find_prev_link
|
||||
function! vimwiki#base#find_prev_link() "{{{
|
||||
"Jump 2 times if the cursor is in the middle of a link
|
||||
if synIDattr(synID(line('.'), col('.'), 0), "name") =~ "VimwikiLink.*" &&
|
||||
\ synIDattr(synID(line('.'), col('.')-1, 0), "name") =~ "VimwikiLink.*"
|
||||
call vimwiki#base#search_word(g:vimwiki_rxAnyLink, 'b')
|
||||
endif
|
||||
call vimwiki#base#search_word(g:vimwiki_rxAnyLink, 'b')
|
||||
endfunction " }}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user