From 6d96516ab49704a5b59d102a1de08ddb691afab2 Mon Sep 17 00:00:00 2001 From: zhang_ji Date: Mon, 22 Feb 2016 16:00:37 +0800 Subject: [PATCH] enhance #64: generate same link type for visual mode and normal mode --- autoload/vimwiki/markdown_base.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/markdown_base.vim b/autoload/vimwiki/markdown_base.vim index 3053629..ef2eb36 100644 --- a/autoload/vimwiki/markdown_base.vim +++ b/autoload/vimwiki/markdown_base.vim @@ -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')