Based on my experience (and the minimal conf I've provided), vim-markdown plugin cause gx in vim not working in the visual mode. gf works completely fine in both normal and visual mode but gx only works in normal mode. However with special filenames (contain spaces) this is not satisfactory.
To reproduce this, I've provided the minimal vimrc config and a test markdown file. You should select the link to a pdf file in visual mode (e.g. vi) and then gx). The reason is since there is a space in the filename link visually selecting the link (url) and then gx is required.
To update this issue and provide a workaround I have put nnoremap <Plug> <Plug>Markdown_OpenUrlUnderCursor in the vimrc file and this has solved the problem for now.
Based on my experience (and the minimal conf I've provided), vim-markdown plugin cause
gx
in vim not working in the visual mode.gf
works completely fine in both normal and visual mode butgx
only works in normal mode. However with special filenames (contain spaces) this is not satisfactory.To reproduce this, I've provided the minimal vimrc config and a test markdown file. You should select the link to a pdf file in visual mode (e.g.
vi)
and thengx
). The reason is since there is a space in the filename link visually selecting the link (url) and thengx
is required.The minimal config
vimrc
:here is the test markdown file to reproduce:
NOTE: This seems somehow similar to #353, but it might be different problem since it's just the case for visual mode.