'+' on a raw url surrounds it with brackets

Fix #188
This commit is contained in:
EinfachToll 2016-03-21 09:02:22 +01:00
parent 0001b3cda9
commit 722d6e4b9a

View File

@ -1921,6 +1921,15 @@ function! s:normalize_link_syntax_n() " {{{
return
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)
" rxWord is less permissive than rxWikiLinkUrl which is used in
" normalize_link_syntax_v