vimmp


Ⅰ. 插件描述

An XMMS2 and MPD client for Vim

Ⅱ. 基本信息

创建日期:  2008-09-03
使用用户:  1
Github星:  1
插件作者:  Xin Wang

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This plugin is based on vimscript #2363, and add MPD support.

Requirements

    Vim with +python support.
    FOR XMMS2: XMMS2 with the Python interface.
    FOR MPD: MPD and python-mpd.

Usage

    Using <leader>x to toggle the play window.

    Also the following key shorts are available. Most key maps start with
    c(Control) or l(playList).

      <space>    Play the song under cursor.
      <cr>       Same as <space>.
      cs         Stop.
      cp         Pause.
      cr         Select a repeat mode.
                 There are three modes for XMMS2: one, all, off.
                 For MPD, there are two: off, all. So there command just toggle.
      -          Decrease volume.
      =          Increase volume.
      r          Refresh window manually.
      la         Add a file or directory to playlist.
      lc         Clear the playlist.
      ld         Remove the song under cursor from current playlist.
      lf         Shuffer the list.
      ll         Load a playlist.
      ln         Create a new playlist, and save current contents to it.
      ls         Sort the playlist, by artist, title or filename.
                 Only available for XMMS2.

Customization

    Specify the id3's encoding. This option is only for XMMS2, i.e
        let g:xmms_id3_encoding="gbk"

    Specify the play window's width:
        let g:xmms_window_width=30

    Specify the playlist format, default is "%artist - %title", %album
    is also avaiable.
        let g:xmms_playlist_format="%title"

Notes for MPD users

    - There's only one playlist which MPD uses to play, users can only load
      other playlists' contents to that list. So the playlist name displayed
      in the status line is just the playlist's version number.
    - Currently, this plugin only support localhost mpd server.

Tips

    When adding music file or directory, you can use Ctrl-D to show all
    candidates. Also, you can use arrow keys to navigate the history.

Leave your comments in following link, or just mail me.
http://danran.72pines.com/vimmp

添加新评论