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

Usage
Post a memo on Slack.
:SlackMemoPostList memos on Slack.
:SlackMemoListList memos on Slack with CtrlP.
:SlackMemoCtrlPList search result memos on Slack
:SlackMemoSearch search queryKeymaps in the memo list
The following keymaps are available in the buffer of the memo list. It does not work with CtrlP.
| key | description |
|---|---|
Enter or o | Open memo on cursor. |
Esc or q | Close memo list window. |
d | Delete memo on cursor. |
y | Yank memo on cursor. |
r | Update list window. |
You can udpate it by saving memo opened in buffer.
Install
It's easy to install using plugin manager.
Depending on your plugin manager, please add the following to .vimrc.
Install with dein
call dein#add('tsuyoshiwada/slack-memo-vim', {'depends': 'mattn/webapi-vim'})Install with NeoBundle
NeoBundle 'tsuyoshiwada/slack-memo-vim', {'depends': 'mattn/webapi-vim'}Requirements
curlcommand.- mattn/webapi-vim.
Setup
You need a token to use Slack Web API.
Please set your token on g:slack_memo_token. and set channel Id in g:slack_memo_channel.
let g:slack_memo_token = '<YOUR_TOKEN>'
let g:slack_memo_channel = '<YOUR_MEMO_CHANNEL_ID>'If you do not know the Id right away, you can easily check with the channel.list tester.
Setup is complete!
Tips
Example keymap
You can post / list easily with the following keymap.
nnoremap smp :SlackMemoPost<CR>
nnoremap sml :SlackMemoList<CR>GFM TODO list
Support GFM TODO list. Posting following memo will be displayed with emoji on Slack.
* [x] Done1
* [x] Done2
* [ ] TODO...Contributing
Reporting issue
Contributing to code
- Fork it.
- Commit your changes and give your commit message.
- Push to your fork on GitHub.
- Open a Pull Request.
Credit
License
See the LICENSE.
TODO
- [x] Support CtrlP.
- [ ] Support sort list.
- [ ] Support vertical split list window.
- [ ] Support open memo in new tab.
- [ ] Delete multiple memos.
- [ ] List more than 1000 memos.