Ⅰ. 插件描述
reddit plugin for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'erthalion/vim-reddit'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'erthalion/vim-reddit'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'erthalion/vim-reddit'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/erthalion/vim-reddit
Ⅳ. 文档说明
vim-reddit
This small plugin for reading the reddit front page. It's really simple)
Installation
For Vundle, add to .vimrc
Bundle 'erthalion/vim-reddit'Usage
Edit reddit.json file - you need change url from "http://www.reddit.com/.json" to your front page url.
It should be like "http://www.reddit.com/.json?feed={modhash}&user={username}".
Now you can call
:Redditand read)
Similarly hacker_news.json file contains configuration for reading HackerNews (you don't need change anything).
You should execute command
:HackerNewsfor reading.
Warning - These commands will clear the current buffer.
