vim-cmus: control cmus music player directly from vim
cmus
is a small, fast, No Nonsense and powerful console music player for Unix-like operating systems.
This plugin helps you to control cmus right from your vim/gvim/macvim.
vim-cmus
requires python (2.7 or higher) to operate.
Use you favourite vim plugin manager, vundle for example, and add:
" cmus remote control
Plugin 'azadkuh/vim-cmus'
You can optionally add following mappings to your .vimrc
:
" cmus controls
nnoremap <leader>i :CmusCurrent<cr>
nnoremap <leader>z :CmusPrevious<cr>
nnoremap <leader>x :CmusPlay<cr>
nnoremap <leader>c :CmusPause<cr>
nnoremap <leader>v :CmusStop<cr>
nnoremap <leader>b :CmusNext<cr>
Optionally, if your music collection contains unicode strings esp in RTL (right to left) languages as Persian, Hebrew, Arabic, ... please install pyfribidi to help vim-cmus
render bi-directional text (where the cmus itself fails to render them properly! as shown in the sample screen cast)
to Install pyfribidi
:
$> sudo pip install pyfribidi
by pip or any other python package manager.
at the moment following commands are implemented:
" shows an interactive menu to send a command to cmus remotely
:Cmus
" shows the information of current song
:CmusCurrent
" commands to controll cmus player
:CmusPrevious
:CmusNext
:CmusPlay
:CmusPause
:CmusStop