summaryrefslogtreecommitdiff
path: root/ftplugin/hackernews.vim
diff options
context:
space:
mode:
authorryanss2015-09-04 23:59:00 -0400
committerryanss2015-09-04 23:59:00 -0400
commitb4f251bf4ba95d6d9c1b03117274a3470588e5f8 (patch)
tree07ee78d9d3ba9dc2599c28aff94fcc69da3315f4 /ftplugin/hackernews.vim
parenteb354aa1716d0fad88b2e59565599020a4af9706 (diff)
downloadvim-hn-b4f251bf4ba95d6d9c1b03117274a3470588e5f8.tar.gz
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
Diffstat (limited to 'ftplugin/hackernews.vim')
-rw-r--r--ftplugin/hackernews.vim4
1 files changed, 2 insertions, 2 deletions
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 <buffer> O :Python hackernews.link(external=True)<cr>
noremap <buffer> gx :Python hackernews.link(external=True)<cr>
noremap <buffer> u :Python hackernews.save_pos()<cr>
\u
- \:Python hackernews.recall_pos()<cr>
+ \:Python hackernews.recall_pos("undo")<cr>
noremap <buffer> <C-R> :Python hackernews.save_pos()<cr>
\<C-R>
- \:Python hackernews.recall_pos()<cr>
+ \:Python hackernews.recall_pos("redo")<cr>
" Helper motions to browse front page, comments and articles easier