vim-cmus


Ⅰ. 插件描述

vim-cmus: control cmus music player directly from vim

Ⅱ. 基本信息

创建日期:  2016-02-07
使用用户:  6
Github星:  17
插件作者:  amir zamani

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-cmus
vim-cmus: cmus directly from vim/neovim.

cmus is an 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/neovim/gvim/macvim
session.

features

  • vim-cmus is a single vim script and does not depend on python or any other
    runtime (new versions do not need python as requirement anymore)
  • shows meta/tag information of current file/stream of cmus, including:
    stream info, title, artist, album, track number, date, file name, ...
  • supports control commands: previous, play, pause, stop and next
  • supports setting aaa_mode: all, album and artist

screen shots

:Cmus as a command, shows an interactive menu:

vim-cmus

:CmusCurrent to echo current file playing by cmus:

vim-cmus

or current stream playing by cmus:

vim-cmus

or

vim-cmus

installation

by your favourite vim plugin manager:

" cmus remote control
Plug 'azadkuh/vim-cmus'
" cmus remote control
Plugin 'azadkuh/vim-cmus'

obviously you need cmus itself to be

  1. to check it, please try:
# must be accessible from your ${PATH}
$> cmus-remote -Q

command list

at the moment following commands are implemented:

  • :Cmus
    shows an interactive menu to send a command to cmus remotely
  • :CmusCurrent
    shows the information of current song
  • :CmusPrevious
  • :CmusPlay
  • :CmusPause
  • :CmusStop
  • :CmusNext

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>

there is another sister project
cmus-osx who integrates cmus into
MacOS notification menu and captures Fn music keys.

License

MIT license - see license for more details.

添加新评论