slackstatus.vim


Ⅰ. 插件描述

Update Slack status by Vim.

Ⅱ. 基本信息

创建日期:  2017-04-15
使用用户:  1
Github星:  4
插件作者:  Yuto MIZUSHIRI

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mizukmb/slackstatus-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mizukmb/slackstatus-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mizukmb/slackstatus-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/mizukmb/slackstatus.vim

Ⅳ. 文档说明

# slackstatus.vim

Update Slack status on Vim.

slack_status

This plugin GET request to /api/users.profile.set in Vim.

Install

slackstatus.vim depend on mattn/webapi-vim. You need to install webapi-vim.

For example

# Dein.vim ( https://github.com/Shougo/dein.vim )

call dein#add('mattn/webapi-vim')
call dein#add('mizukmb/slackstatus.vim')
# NeoBundle ( https://github.com/Shougo/neobundle.vim )

NeoBundle 'mattn/webapi-vim'
NeoBundle 'mizukmb/slackstatus.vim'

Usage

You need to set variable g:slackstatus_token in .vimrc .

let g:slackstatus_token = '<YOUR_SLACK_TOKEN>'

How to get Slack token https://api.slack.com/custom-integrations/legacy-tokens

  • Update Slack status
:SlackStatusUpdate [status_emoji] [status_text]

" example
:SlackStatusUpdate :palm_tree: Vacationing

slackstatus vim_demo

License

MIT

添加新评论