From b4f251bf4ba95d6d9c1b03117274a3470588e5f8 Mon Sep 17 00:00:00 2001 From: ryanss Date: Fri, 4 Sep 2015 23:59:00 -0400 Subject: Improve handling of optional arg An item_id can now be passed as the optional argument to the `:Hackernews` command which will load that specific item into the .hackernews buffer, whether it be a story, poll, comment thread or individual comment. Ex. `:Hackernews 9015621` Close #35 --- ftplugin/hackernews.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftplugin/hackernews.vim') diff --git a/ftplugin/hackernews.vim b/ftplugin/hackernews.vim index ec07e94..501d443 100644 --- a/ftplugin/hackernews.vim +++ b/ftplugin/hackernews.vim @@ -41,10 +41,10 @@ noremap O :Python hackernews.link(external=True) noremap gx :Python hackernews.link(external=True) noremap u :Python hackernews.save_pos() \u - \:Python hackernews.recall_pos() + \:Python hackernews.recall_pos("undo") noremap :Python hackernews.save_pos() \ - \:Python hackernews.recall_pos() + \:Python hackernews.recall_pos("redo") " Helper motions to browse front page, comments and articles easier -- cgit v1.2.3