I am using the following plugin to simplify tagging URLs in Markdown: tpope/vim-surround
This works:
nmap <leader>l <Plug>Ysurroundiw]%a(<C-R>*)<Esc>
This doesn't (notice the capital 'S'):
vmap <leader>l <Plug>YSurround]%a(<C-R>*)<Esc>
Any idea why?
Try using
VSurround
instead ofYSurround
since you're using avmap
.