神刀安全网

Play music from 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?

Play music from vim

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> 

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!

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Play music from vim

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮