summaryrefslogtreecommitdiff
path: root/content/post/2009-04-25-controll-xmms2-from-vim.md
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-07-02 20:06:31 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-07-02 20:06:31 -0700
commit4b8e43f75b394a4e6169884fbfb4c606865c6a22 (patch)
tree48cae6b8e8f9b68cae29676d8a15cb3ddbfcccda /content/post/2009-04-25-controll-xmms2-from-vim.md
parentStop using Jekyll. (diff)
downloadlumberjaph-4b8e43f75b394a4e6169884fbfb4c606865c6a22.tar.gz
Import migration from Jekyll to Hugo.
All the posts were converted, and the layout is created. This looks like it works just fine.
Diffstat (limited to '')
-rw-r--r--content/post/2009-04-25-controll-xmms2-from-vim.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/content/post/2009-04-25-controll-xmms2-from-vim.md b/content/post/2009-04-25-controll-xmms2-from-vim.md
new file mode 100644
index 0000000..fccdc8a
--- /dev/null
+++ b/content/post/2009-04-25-controll-xmms2-from-vim.md
@@ -0,0 +1,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.