有趣的vi-vim页面内的音乐播放控制


:r!mkfifo area-ear.ff
:r!mpg123 -O area-ear.ff 分手快乐.mp3 &
:r!aplay -f S16_LE -c2 -r44100 area-ear.ff &
:exec 'normal mm3G@c4G@c`m'

:r!ps -e|grep mpg123|awk -F ' ' {'print ":r\!kill " $1'}
:r!ps -e|grep aplay
:exec 'normal mm7G@c @cdd`m'

分手快乐.mp3
:exec 'normal k^v$hy3G$4bv3ep5G@c '
Exodus.mp3
:exec 'normal k^v$hy3G$4bv3ep5G@c'

//init
:exec 'normal jvggzf22G'

//clear
:exec 'normal ggza9G@cggza26G'
//music: 分手快乐
:exec 'normal ggza12G@cggza20G'
//music: Exodus
:exec 'normal ggza14G@cggza20G'

:exec 'normal 2k@c'

你可能感兴趣的:(vim)