From 20e4ab57e5680b31aa0581150f145e0c5ed4e84b Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 11 Aug 2016 11:14:24 +0100 Subject: [PATCH] Change surround mapping for creating markdown link --- after/ftplugin/markdown.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/after/ftplugin/markdown.vim b/after/ftplugin/markdown.vim index f03c0de..a0d5f3c 100644 --- a/after/ftplugin/markdown.vim +++ b/after/ftplugin/markdown.vim @@ -9,10 +9,10 @@ setlocal textwidth=80 setlocal tabstop=4 shiftwidth=4 softtabstop=4 " Custom surround for markdown link syntax. -" "ys{motion}[" makes link out of "word" -> "[word]()" -autocmd FileType markdown let b:surround_91 = "[\r]()" -" "ys{motion}]" makes link out of "url" -> "[](url)" -autocmd FileType markdown let b:surround_93 = "[](\r)" +" "ys{motion}l" makes link out of "word" -> "[word]()" +autocmd FileType markdown let b:surround_{char2nr("l")} = "[\r]()" +" "ys{motion}L" makes link out of "url" -> "[](url)" +autocmd FileType markdown let b:surround_{char2nr("L")} = "[](\r)" finish " Experiment functionality (disabled). {{{