blob: 4ca7b42659790b18725d7c6c48529c827c71bfe8 (
plain) (
tree)
|
|
---
layout: post
summary: In which I control xmms2 from vim.
title: controll xmms2 from vim
type: codex
---
a really basic way to controll xmms2 from your vim session:
{% highlight vim %}
map <leader>xn <Esc>:!xmms2 next<CR><CR>
map <leader>xb <Esc>:!xmms2 previous<CR><CR>
map <leader>xP <Esc>:!xmms2 pause<CR><CR>
map <leader>xp <Esc>:!xmms2 play<CR><CR>
map <leader>xs <Esc>:!xmms2 stop<CR><CR>
{% endhighlight %}
now, type `,xn` in vim, and xmms2 will start to play the next track from your playlist.
|