enhance #64: generate same link type for visual mode and normal mode
This commit is contained in:
parent
b0cc6ff0de
commit
6d96516ab4
@ -195,7 +195,7 @@ function! s:normalize_link_syntax_v() " {{{
|
|||||||
norm! gvy
|
norm! gvy
|
||||||
let visual_selection = @"
|
let visual_selection = @"
|
||||||
let link = substitute(g:vimwiki_Weblink1Template, '__LinkUrl__', '\='."'".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')
|
call setreg('"', link, 'v')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user