X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/6f9e18335e17bca5fbf05974b4ccbe1759e66891..ea1da3bd284f6f54b5421b757264155cc0ad138a:/ftplugin/markdown.vim?ds=sidebyside diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index daaa2af..ef9cf59 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -582,7 +582,11 @@ if !exists("*s:EditUrlUnderCursor") function s:EditUrlUnderCursor() let l:url = s:Markdown_GetUrlForPosition(line('.'), col('.')) if l:url != '' - execute 'edit' l:url + if get(g:, 'vim_markdown_no_extensions_in_markdown', 0) + execute 'edit' fnamemodify(expand('%:~'), ':p:h').'/'.l:url.'.md' + else + execute 'edit' l:url + endif else echomsg 'The cursor is not on a link.' endif