vim-connect-slack


Ⅰ. 插件描述

vim-connect-slack will run the SlackAPI from Vim

Ⅱ. 基本信息

创建日期:  2015-09-13
使用用户:  1
Github星:  1
插件作者:  wan

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/wanshot/vim-connect-slack

Ⅳ. 文档说明

vim-connect-slack

vim-connect-slack will run the SlackAPI from Vim

This Plugin is still BetaVersion

Requirements

  • Vim == +python/dyn

    • Python >= 2.7.9
    • requests

      or
      
      • Python < 2.7.9
      • requests <= 2.5.3

Settings

Plz set these to vimrc

let g:Token = "Your Slack Token"
let g:UserName = "Your Slack Username"


Usage

Please be the first to run the SlackMode To use the vim-connect-slack

:SlackMode

SlackMode caches the information of API inside

When information of the slack has been updated please run the SlackMode

Commands

  • POST Message

        
        :Slack "Message"
        
         
  • POST Snippet

Range selection change to the visual mode

    :SlackSnippet {FileType} {Title}
    • Default FileType is "Python"
    • Default Title is "None"
    • Show Channel History

        :SlackHistory {Limit}
      
    • Show SlackChannels

        :SlackChannels
      
        
    • Show Current channel

        :SlackChannel
      
    • Set Channel

        :SlackChannels
      • Enter button to select the channel list that is displayed

    License

    This software is released under the MIT License, see LICENSE.txt.

    添加新评论