Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Follow link in vim with markdown syntax

Tags:

vim

markdown

Is it possible to follow markdown links from vim with a keyboard shortcut? The links look like this:

[foo](relative/path/to/file.pdf)
[bar](www.some-webpage.com)

I want to have a keyboard shortcut that opens the links with the default application. Not sure whether it makes a difference, but I am using OS X.

like image 843
Lns wltr Avatar asked Nov 13 '14 22:11

Lns wltr


1 Answers

Try gx when your cursor is over the link. netrw should open the link with the external handler (see :h netrw-gx) which in Mac OS X will be open.

like image 104
JP Flouret Avatar answered Sep 25 '22 13:09

JP Flouret