We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 690e8e9 commit 8e0ebadCopy full SHA for 8e0ebad
ftplugin/markdown.vim
@@ -106,7 +106,11 @@ nnoremap <buffer> <expr> <CR> empty(links.IsLink())
106
\ ? '<ScriptCmd>SetLinkOpFunc()<CR>g@iw'
107
\ : '<ScriptCmd>links.OpenLink()<CR>'
108
109
-nnoremap <buffer> <expr> <s-CR> empty(links.IsLink())
+noremap <buffer> <expr> gx empty(links.IsLink())
110
+ \ ? '<cmd>echo "Invalid URL"<cr>'
111
+ \ : '<ScriptCmd>links.OpenLink()<CR>'
112
+
113
+nmap <buffer> <expr> <s-CR> empty(links.IsLink())
114
\ ? '<s-CR>'
115
\ : '<ScriptCmd>links.OpenLink(true)<CR>'
116
0 commit comments