Awesome
Vim Audiobox
A simple plugin to control audio players from within vim.
Change Log
See <a href="https://github.com/dhruvasagar/vim-audiobox/blob/master/CHANGELOG.md">CHANGELOG.md</a>
Installation
There are several ways to install vim-audiobox:
-
I recommend installing <a href="https://github.com/Shougo/neobundle.vim">NeoBundle</a> and then just add
NeoBundle 'dhruvasagar/vim-audiobox'
to your ~/.vimrc. -
If you are using <a href="https://github.com/gmarik/vundle">Vundle</a> and then just add
Bundle 'dhruvasagar/vim-audiobox'
to your ~/.vimrc. -
If you are using <a href="https://github.com/tpope/vim-pathogen">pathogen.vim</a>, then just clone this repo (or add a submodule) in your bundle directory.
-
Manually (not recommended). Copy plugin/audiobox.vim to ~/.vim/plugin under UNIX or vimfiles/plugin under WINDOWS and restart VIM.
Commands & Mappings
Audiobox plugin provides a few helpful commands and mappings.
Commands
:AudioboxPlay
: to play current song if it isn't playing already.:AudioboxNext
: to play next song & echo it's name in vim.:AudioboxPrev
: to play previous song & echo it's name in vim.:AudioboxPause
: to pause the current song.:AudioboxTogglePlay
: to toggle between play / pause.:AudioboxShowCurrentSong
: to show the current playing song in vim.
Mappings
<Plug>AudioboxPlay
: by default this is mapped to <kbd>gmp</kbd>.<Plug>AudioboxNext
: by default this is mapped to <kbd>gmn</kbd>.<Plug>AudioboxPrev
: by default this is mapped to <kbd>gmN</kbd>.<Plug>AudioboxPause
: by default this is mapped to <kbd>gmP</kbd>.<Plug>AudioboxTogglePlay
: by default this is mapped to <kbd>gmt</kbd>.<Plug>AudioboxShowCurrentSong
: by default this is mapped to <kbd>gms</kbd>.