ctrlp-mpc.vim


Ⅰ. 插件描述

Control MPD from vim, through mpc, with ctrlp!

Ⅱ. 基本信息

创建日期:  2016-03-26
使用用户:  6
Github星:  34
插件作者:  Andrea Rossi

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/lucidstack/ctrlp-mpc.vim

Ⅳ. 文档说明

# ctrlp-mpc.vim

There's nothing that breaks my concentration more than having to switch windows and find that
Daft Punk tune I really want to listen to right now,
so...why not Zoidberg ctrlp?

asciicast

Installation

Knock yourself out and install this repo in whichever way you prefer(Plugin 'lucidstack/ctrlp-mpc.vim',
if you are on Vundle like me), then add 'mpc' to the ctrlp extensions (in your .vimrc):

    let g:ctrlp_extensions = ['buffertag', 'tag', 'line', 'dir', 'tmux', 'mpc'] " <- here it is

and, optionally, a leader shortcut:

  " Sheer awesomeness
  nnoremap <Leader>m :CtrlPMpc<CR>

If you need to run mpc with particular flags (like --port or --host), you can override the command ctrlp-mpc uses for mpc in your .vimrc:

  let g:ctrlp_mpc_cmd = 'mpc --port 6682'

je cache, tu caches, il cache

ctrlp-mpc.vim has a little cache in place for artists. These can be A LOT, and on my library it takes a couple
of seconds to load, so I figured I'd add a cache for it.

If you happen to add artists while vim is running, you can run :CtrlPMpcClear to clear the cache!

添加新评论