A simple plugin to control audio players from within vim.
See CHANGELOG.md
There are several ways to install vim-audiobox:
-
I recommend installing NeoBundle and then just add
NeoBundle 'dhruvasagar/vim-audiobox'
to your ~/.vimrc. -
If you are using Vundle and then just add
Bundle 'dhruvasagar/vim-audiobox'
to your ~/.vimrc. -
If you are using pathogen.vim, 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.
Audiobox plugin provides a few helpful commands and mappings.
: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.
<Plug>AudioboxPlay
: by default this is mapped to gmp.<Plug>AudioboxNext
: by default this is mapped to gmn.<Plug>AudioboxPrev
: by default this is mapped to gmN.<Plug>AudioboxPause
: by default this is mapped to gmP.<Plug>AudioboxTogglePlay
: by default this is mapped to gmt.<Plug>AudioboxShowCurrentSong
: by default this is mapped to gms.