X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/64148cf1095569fb03b57f3842d941727a2a5812..b8d99c7fd8712697f4627d7f93f91dc5283d50a6:/ftplugin/markdown.vim diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index d7c3777..067643d 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -600,7 +600,12 @@ if !exists('*s:EditUrlUnderCursor') endif if l:url != '' if get(g:, 'vim_markdown_no_extensions_in_markdown', 0) - let l:url .= '.md' + " use another file extension if preferred + if exists('g:vim_markdown_auto_extension_ext') + let l:url = '.'.g:vim_markdown_auto_extension_ext + else + let l:url = '.md' + endif endif let l:url = fnamemodify(expand('%:h').'/'.l:url, ':.') execute 'edit' l:url