" vim-hackernews " -------------- " Browse Hacker News (news.ycombinator.com) inside Vim. " " Author: ryanss " Website: https://github.com/ryanss/vim-hackernews " License: MIT (see LICENSE file) " Version: 0.1.1 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(r'" . 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