Skip to content

Commit

Permalink
'+' on a raw url surrounds it with brackets
Browse files Browse the repository at this point in the history
Fix #188
  • Loading branch information
EinfachToll committed Mar 21, 2016
1 parent 0001b3c commit 722d6e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions autoload/vimwiki/base.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 722d6e4

Please sign in to comment.