Skip to content

kfihihc/vimmp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2369

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

Packages

No packages published

Languages

  • Python 100.0%