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

Installation
For vim-plug, add the following to your ~/.vimrc:
Plug 'vmchale/twitter-vim'You'll have to install the Haskell CLI tool, viz.
cabal new-install tweet-hsYou can also download it for linux from here;
hopefully it shouldn't be too hard to find.
Config
After that, put your API keys in a file (default ~/.cred.toml or set path with g:twitter_cred), viz.
api-key = "API_KEY_HERE"
api-sec = "API_SECRET_HERE"
tok = "OAUTH_TOKEN_HERE"
tok-sec = "TOKEN_SECRET_HERE"Use
To view your timeline, use :Timeline or <silent> tl. To tweet, enter:Tweet to open a scratch buffer, and then t in normal mode to tweet its
- Hit
qto exit.