" amarok.vim - amaroK integration for vim " " This plugin let's you control amaroK (http://amarok.kde.org) from vim. It adds " a menu to your gvim, and defines a new command called 'AmaroK', which let's " you control amarok via Ex-commands. Since it uses the dcop-functionality of " amaroK, you can type in any dcop command the dcop-player-interface of amarok " supports. For a complete list type: dcop amarok player functions in a terminal " " " If you don't like the menu, you can set the g:AmaroK_show_menu-variable to 0 " in your vimrc and the menu will not be displayed if !exists('g:AmaroK_show_menu') let g:AmaroK_show_menu = 1 endif function! CallAmaroK(cmd) call system("dcop amarok player ".a:cmd) endfunction command -nargs=1 AmaroK :call CallAmaroK('') if exists("g:AmaroK_show_menu") if g:AmaroK_show_menu==1 9000amenu &AmaroK.Play:AmaroK\ play :AmaroK play 9000amenu &AmaroK.Pause:AmaroK\ pause :AmaroK pause 9000amenu &AmaroK.Stop:AmaroK\ stop :AmaroK stop 9000amenu &AmaroK.&Next:AmaroK\ next :AmaroK next 9000amenu &AmaroK.&Previous:AmaroK\ prev :AmaroK prev " 9000amenu &AmaroK.&Current\ Song:PrintAmaroK\ nowPlaying 9000amenu &AmaroK.&Volume.0% :AmaroK setVolume 0 9000amenu &AmaroK.&Volume.25% :AmaroK setVolume 25 9000amenu &AmaroK.&Volume.50% :AmaroK setVolume 50 9000amenu &AmaroK.&Volume.75% :AmaroK setVolume 75 9000amenu &AmaroK.&Volume.100% :AmaroK setVolume 100 9000amenu &AmaroK.&Volume.Volume\ Up :AmaroK volumeUp 9000amenu &AmaroK.&Volume.Volume\ Down :AmaroK volumeDown 100 endif endif