enhance #64: generate same link type for visual mode and normal mode

This commit is contained in:
zhang_ji 2016-02-22 16:00:37 +08:00
parent b0cc6ff0de
commit 6d96516ab4

View File

@ -195,7 +195,7 @@ function! s:normalize_link_syntax_v() " {{{
norm! gvy
let visual_selection = @"
let link = substitute(g:vimwiki_Weblink1Template, '__LinkUrl__', '\='."'".visual_selection."'", '')
let link = substitute(link, '__LinkDescription__', '\='."''", '')
let link = substitute(link, '__LinkDescription__', '\='."'".visual_selection."'", '')
call setreg('"', link, 'v')