Skip to content

vim-cmus: control cmus music player directly from vim

License

Notifications You must be signed in to change notification settings

kenanpelit/vim-cmus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-cmus

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.

screen cast

vim-cmus

installation

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>

optional bidi

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.

command list

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

About

vim-cmus: control cmus music player directly from vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 67.4%
  • Vim Script 32.6%