parent
0001b3cda9
commit
722d6e4b9a
@ -1921,6 +1921,15 @@ function! s:normalize_link_syntax_n() " {{{
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" try Weblink
|
||||||
|
let lnk = vimwiki#base#matchstr_at_cursor(g:vimwiki_rxWeblink)
|
||||||
|
if !empty(lnk)
|
||||||
|
let sub = vimwiki#base#normalize_link_helper(lnk,
|
||||||
|
\ lnk, '', g:vimwiki_WikiLinkTemplate2)
|
||||||
|
call vimwiki#base#replacestr_at_cursor(g:vimwiki_rxWeblink, sub)
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
" try Word (any characters except separators)
|
" try Word (any characters except separators)
|
||||||
" rxWord is less permissive than rxWikiLinkUrl which is used in
|
" rxWord is less permissive than rxWikiLinkUrl which is used in
|
||||||
" normalize_link_syntax_v
|
" normalize_link_syntax_v
|
||||||
|
Loading…
Reference in New Issue
Block a user