sponsor Vim development Vim logo Vim Book Ad

basic Tip #707: Map xmmsctrl commandos in you vimrc file

 tip karma   Rating 11/6, Viewed by 1090 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   April 26, 2004 4:55      complexity:   basic
author:   Martijn Ras      as of Vim:   5.7

In case you haven't installed xmmsctrl, you can get it by clicking download on this page:


Add the following to your vimrc file:

"XMMS mappings
map <silent> <F8> :echo substitute(system('xmmsctrl title'), "\n", "", "")<cr>
map <silent> <F9> :call system("xmmsctrl launch")<cr>
map <silent> <S-F9> :call system("xmmsctrl quit")<cr>
map <silent> <F10> :call system("xmmsctrl play")<cr>
map <silent> <S-F10> :call system("xmmsctrl stop")<cr>
map <silent> <F11> :call system("xmmsctrl pause")<cr>
map <silent> <S-F11> :call system("xmmsctrl shuffle")<cr>
map <silent> <F12> :call system("xmmsctrl next")<cr>
map <silent> <S-F12> :call system("xmmsctrl previous")<cr>

 rate this tip  Life Changing Helpful Unfulfilling 

<< Make html auto-readable in vim | Converting LANG to UTF-8 >>

Additional Notes

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to vim@vim.org after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge.net Logo