Ⅰ. 插件描述
Browse Hacker News inside VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'guidealexis/vim-hackernews-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'guidealexis/vim-hackernews-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'guidealexis/vim-hackernews-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/guidealexis/vim-hackernews
Ⅳ. 文档说明
vim-hackernews
Browse Hacker News inside Vim.


Uses cheeaun's Unofficial Hacker News API
to retrieve home page stories and comments and
FUCK YEAH MARKDOWN for rendering HTML articles
as text.
Basic Usage
- Open the Hacker News home page in Vim by executing the
:HackerNewscommand - Press lowercase
oto open links in Vim - Press uppercase
Oto open links in default web browser - Press lowercase
uto go back (or whatever you've remappedundoto) - Press
Ctrl+rto go forward (or whatever you're remappedredoto) - Execute the
:bdcommand to close and remove the Hacker News buffer
Installation
Pathogen (https://github.com/tpope/vim-pathogen)
git clone https://github.com/ryanss/vim-hackernews ~/.vim/bundle/vim-hackernewsVundle (https://github.com/gmarik/vundle)
Plugin 'ryanss/vim-hackernews'NeoBundle (https://github.com/Shougo/neobundle.vim)
NeoBundle 'ryanss/vim-hackernews'Roadmap
- Add option to format text like different programming languages to make it
less obvious that you are reading Hacker News in Vim - Add configuration value for custom text width
- Add configuration value to specify external browser
- Move away from unofficial API by creating server to cache official Hacker
News API data - Move away from fuckyeahmarkdown.com by creating server that uses
python-readability to convert article HTML to text
Contributions
Issues and
Pull Requests are always
welcome!
License
Code is available according to the MIT License
(see LICENSE).