From: codybuell Date: Wed, 17 Jan 2018 19:42:20 +0000 (-0500) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/da4f9691597928065d849fe9c0863ed3a756b52d?hp=f416b35dba4505f85dca9cafb984ab7d89e57f96 Merge remote-tracking branch 'upstream/master' --- 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