diff options
| author | ryanss | 2015-02-07 17:42:52 -0500 |
|---|---|---|
| committer | ryanss | 2015-02-07 17:42:52 -0500 |
| commit | ea3fe88e3db36aacff9fc1c2a0a8b6b08a8bb840 (patch) | |
| tree | 79a8c42bcff1c82387a2201a83b05189180f9578 /plugin/hackernews.vim | |
| parent | 2af28fab25e90644c9688319f1347680f7c47549 (diff) | |
| download | vim-hn-ea3fe88e3db36aacff9fc1c2a0a8b6b08a8bb840.tar.gz | |
Add Roadmap and Contribution sections to README
Diffstat (limited to 'plugin/hackernews.vim')
| -rw-r--r-- | plugin/hackernews.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugin/hackernews.vim b/plugin/hackernews.vim index 768f136..d93195a 100644 --- a/plugin/hackernews.vim +++ b/plugin/hackernews.vim @@ -1,13 +1,25 @@ +" vim-hackernews +" -------------- +" Browse Hacker News (news.ycombinator.com) inside Vim. +" +" Author: ryanss <ryanssdev@icloud.com> +" Website: https://github.com/ryanss/vim-hackernews +" License: MIT (see LICENSE file) + + if !has('python') echo "HackerNews.vim Error: Requires Vim compiled with +python" finish endif + " Import Python code execute "python import sys" execute "python sys.path.append('" . expand("<sfile>:p:h") . "')" execute "python from hackernews import hacker_news, hacker_news_link" + command! HackerNews python hacker_news() + au! BufRead,BufNewFile *.hackernews set filetype=hackernews |
