From ea3fe88e3db36aacff9fc1c2a0a8b6b08a8bb840 Mon Sep 17 00:00:00 2001 From: ryanss Date: Sat, 7 Feb 2015 17:42:52 -0500 Subject: Add Roadmap and Contribution sections to README --- plugin/hackernews.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'plugin/hackernews.vim') 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 +" 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(":p:h") . "')" execute "python from hackernews import hacker_news, hacker_news_link" + command! HackerNews python hacker_news() + au! BufRead,BufNewFile *.hackernews set filetype=hackernews -- cgit v1.2.3