From 722d6e4b9a0d66ec09abdbed175fb7a19dc99313 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Mon, 21 Mar 2016 09:02:22 +0100 Subject: [PATCH] '+' on a raw url surrounds it with brackets Fix #188 --- autoload/vimwiki/base.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 0f4cfef..45949d0 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -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