diff options
| author | ryanss | 2015-01-06 23:59:00 -0500 |
|---|---|---|
| committer | ryanss | 2015-01-06 23:59:00 -0500 |
| commit | 925b7ca10c0ce7d0636dc85ef5ff063b0f4a66a0 (patch) | |
| tree | b9b2d368ebc00910a2fb451c1de611400b7a6135 /plugin/hackernews.vim | |
| parent | a7cff5c6d5f69bf1c262168432e3eb0e1be9369f (diff) | |
| download | vim-hn-925b7ca10c0ce7d0636dc85ef5ff063b0f4a66a0.tar.gz | |
Add story function with nested comments
Diffstat (limited to 'plugin/hackernews.vim')
| -rw-r--r-- | plugin/hackernews.vim | 4 |
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> |
