summaryrefslogtreecommitdiff
path: root/plugin/hackernews.vim
diff options
context:
space:
mode:
authorryanss2015-01-06 23:59:00 -0500
committerryanss2015-01-06 23:59:00 -0500
commit925b7ca10c0ce7d0636dc85ef5ff063b0f4a66a0 (patch)
treeb9b2d368ebc00910a2fb451c1de611400b7a6135 /plugin/hackernews.vim
parenta7cff5c6d5f69bf1c262168432e3eb0e1be9369f (diff)
downloadvim-hn-925b7ca10c0ce7d0636dc85ef5ff063b0f4a66a0.tar.gz
Add story function with nested comments
Diffstat (limited to 'plugin/hackernews.vim')
-rw-r--r--plugin/hackernews.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/hackernews.vim b/plugin/hackernews.vim
index 1edb19d..90d8b81 100644
--- a/plugin/hackernews.vim
+++ b/plugin/hackernews.vim
@@ -3,8 +3,12 @@ if !has('python')
finish
endif
+
" Import Python code
let s:path = expand("<sfile>:p:h")
execute "pyfile " . s:path . "/hackernews.py"
+
command! HackerNews python hacker_news()
+
+map <return> :python hacker_news_item()<cr>