From 0afbfaee75e8480e8e0ed0a3bbd3749a4756f727 Mon Sep 17 00:00:00 2001
From: franck cuny <franck@lumberjaph.net>
Date: Fri, 10 Sep 2010 23:25:10 +0200
Subject: initial import

---
 _posts/2009-04-25-controll-xmms2-from-vim.textile | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 _posts/2009-04-25-controll-xmms2-from-vim.textile

(limited to '_posts/2009-04-25-controll-xmms2-from-vim.textile')

diff --git a/_posts/2009-04-25-controll-xmms2-from-vim.textile b/_posts/2009-04-25-controll-xmms2-from-vim.textile
new file mode 100644
index 0000000..6b713c3
--- /dev/null
+++ b/_posts/2009-04-25-controll-xmms2-from-vim.textile
@@ -0,0 +1,18 @@
+---
+layout: post
+category: app
+title: controll xmms2 from vim
+---
+
+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.
+
-- 
cgit v1.2.3

