Ⅰ. 插件描述
unite.vim extentions for convenience similar to alfred-workflowⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'farseer90718/unite-workflow'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'farseer90718/unite-workflow'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'farseer90718/unite-workflow'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/farseer90718/unite-workflow
Ⅳ. 文档说明
What the hell?
I suppose you know what alfred-workflow is.
This vim plugin is a collection of unite.vim extentions as a alternative to it.
github events

Fetch recent github events of a certain user.
github feeds
Fetch github timeline of a certain user(defaults to g:github_user).
github repository searching
Search for github repos by keywords.
github issues
NOTE:
- In order to edit issues or create new issue, you'll need github-issues.vim
- The default repository(if input omitted) is fetched by
git remote -v. - You could use input to specify a certain project, in the format of 'owner/repo'

gist user
NOTE:This feature requires gist-vim.

List public gists created by a certain user(defaults to g:github_user).
Actions:
- edit, open with
:Gist id. - start, open in a browser.
gist searching
Search for gists.
Similar to gist-user.
Fetch hot topics from reddit.
use g:unite#workflow#reddit#front to specify user front feed json url.
Should be like this http://www.reddit.com/.json?feed={hash}&user={username}.
If not, the fetching scope will be 'all'.
If used with input, the input is taken as subreddit like this:

Twitter.
Available actions: tweet/retweet/reply/favorite.

dropbox
- files/directories hierarchy list
- search

wikipedia
Search for wiki, list matching entries, open selected in a browser.
youtube
Search youtube, playlist/channel/video ...
apropos
Fast manpage access.

toilet
Note: this feature requires executable 'toilet' or 'figlet'.
Use g:unite#workflow#figlet_fonts#dir to specify where the fonts are stored,
defaults to /usr/share/figlet.

emoji
Note: You may need extra font packages for correct displaying.
For example, arch users need ttf-symbola in AUR.
Search for emoji by description.

v2ex
Latest topics of http://www.v2ex.com

youdao
有道词典/翻译

music163
网易云音乐搜索

douban
豆瓣 音乐/电影/图书

zhihu
知乎日报
turing
Installation
You need these plugins installed and loaded.
Suggested plugins:
- github-issues.vim for github issue editing/creating.
- gist-vim for gist sources.
Then just use your preferred managing tool for this plugin.
If you'd like to load just a part of these features. I suggest that you use neobundle.vim:
NeoBundleLazy 'farseer90718/unite-workflow', {
\ 'unite_sources' : [ your-list ],
\ 'depends' : [
\ 'mattn/webapi-vim',
\ 'mattn/gist-vim',
\ 'jaxbot/github-issues.vim']
\ }Customization
g:unite#workflow#show_icon0 to disable avatar display.g:unite#workflow#reddit#frontas described above.g:unite#workflow#figlet_fonts#diras described above.g:unite#workflow#playerdefaults to 'mplayer'.
Example:
let g:unite#workflow#reddit#front = 'http://www.reddit.com/.json?feed=foo&user=bar'
call unite#custom#profile(
\ 'source/github/search, source/github/event, '.
\ 'source/github/feed, source/gist/search, '.
\ 'source/gist/user, source/v2ex, '.
\ 'source/reddit, source/wikipedia',
\ 'context', {
\ 'keep_focus' : 1,
\ 'no_quit' : 1
\ })
call unite#custom#profile(
\ 'source/youdao, source/toilet',
\ 'context', {
\ 'max_multi_lines' : 20,
\ 'winheight' : 20
\ })
nnoremap <leader>t :Unite youdao:<C-R><C-W><CR>Tips
- Press
<C-L>to refresh (change input in a faster way) in some sources. - Some sources may have specialized actions, you can check the action list to find out.
Contributing
- Bug report, feature request, other discussions are always welcome.
- Pull requests of new workflows are even better.
License
MIT