From 49cb818fce8d46f4ede9f92c477756053e1639b6 Mon Sep 17 00:00:00 2001 From: ryanss Date: Sun, 15 Feb 2015 15:14:09 -0500 Subject: Fix #10 Remap `gx` to use hackernews.link() function The hackernews.link(external=True) function works better than the default `gx` functionality. By default, `gx` will sometimes not work on urls surrounded by brackets/braces/parenthesis, and will not work on urls spanning multiple lines. The hackernews.link() function does not have these issues. --- ftplugin/hackernews.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/ftplugin/hackernews.vim b/ftplugin/hackernews.vim index 023ac99..2c94832 100644 --- a/ftplugin/hackernews.vim +++ b/ftplugin/hackernews.vim @@ -37,5 +37,6 @@ execute "python hackernews.main()" noremap o :python hackernews.link() noremap O :python hackernews.link(external=True) +noremap gx :python hackernews.link(external=True) noremap u u:python hackernews.recall_pos() noremap :python hackernews.recall_pos() -- cgit v1.2.3