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). {{{