Ⅰ. 插件描述
MPC client in NeovimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'lfkeitel/neovim-mpc'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'lfkeitel/neovim-mpc'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'lfkeitel/neovim-mpc'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/lfkeitel/neovim-mpc
Ⅳ. 文档说明
# neovim-mpc
Installation
vim-plug
Add to your plugin block:
Plug 'lfkeitel/neovim-mpc', { 'do': 'bash install.sh' }Then run :PlugInstall.
Usage
Refer to the following table to find supported commands.
| Command | Description |
|---|---|
:MpcCurrentSong | Echo the current song playing |
:MpcNext | Play next track |
:MpcPrevious | Play previous track |
:MpcPlay | Play the track, if currently paused |
:MpcPause | Pause the track, if currently playing |
:MpcToggle | Toggle between play and pause |
TODOs
- Better error handling - get rid of
unwrap()s everywhere.
License
BSD 3-clause
Original
Inspired by neovim-spotify.
The structure is the same but refactored to work with mpc.
Original author's blog post: https://medium.com/@srishanbhattarai/a-detailed-guide-to-writing-your-first-neovim-plugin-in-rust-a81604c606b1.