From da0b8849cd516a878ebd49de2eda0f3e85488f52 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 8 Nov 2014 18:02:45 -0500 Subject: Get audio playing working with insert autocmds * Move test .vim file into the plugin/ directory. Some of the functions added in this commit should be moved to autoload/ when this is more together * Add functions: * Get & kill pids for mplayer * Play audio * Insert autocmd handlers * Add InsertEnter & InsertLeave autocmds that start playing the test song when entering insert mode and stop playing when you leave insert mode. --- sounds.vim | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 sounds.vim (limited to 'sounds.vim') diff --git a/sounds.vim b/sounds.vim deleted file mode 100644 index dc6091a..0000000 --- a/sounds.vim +++ /dev/null @@ -1,4 +0,0 @@ -nnoremap i :call system("mplayer ./private/test-track.mp3 &") - - -" nnoremap e :call system("ps -T | grep mplayer | tail -n2 | head -n1 | awk '{print $1}'") -- cgit v1.2.3