blob: fccdc8aa3481c08d0510acc07cbb24ad8fb48a6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
---
date: 2009-04-25T00:00:00Z
summary: In which I control xmms2 from vim.
title: controll xmms2 from vim
---
a really basic way to controll xmms2 from your vim session:
```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>
```
now, type `,xn` in vim, and xmms2 will start to play the next track from your playlist.
|