Google Play Vim
Google Play Music + Vim! Keep focus on your code and still control Google Play's Music interface.
Install the Vim plugin via Pathogen
git clone https://github.com/bassnode/vim-google-play.git ~/.vim/bundle/vim-google-play
Install GNU coreutils if you're on OS X
sudo brew install coreutils
Install the Python script which communicates between Chrome and Vim:
Install the Chrome extension
Load or refresh http://music.google.com
Controlling Google Play
By default, the key bindings are the following:
- Next Song:
<leader>+ Right Arrow
- Previous Song:
<leader>+ Left Arrow
- Volume Up:
<leader>+ Up Arrow
- Volume Down:
<leader>+ Down Arrow
- Shuffle Everything:
Volume control only workd on OSX and Linux.
If you want to use something other than the leader key for the prefix, set it like so:
let g:google_play_prefix = "F"
The script uses netcat (
nc) to communicate. If your OS doesn't have access to netcat,
you can override the binary to use by setting this in your ~/.vimrc:
let g:google_play_net_exec = "netcat.exe"
Note that it's much preferred to use netcat as there's no guarantee your replacement will work.
The perceptive developer will note that in the Git checkout includes the Chrome Extension code. The reasons the steps suggest installing it from the Chrome Store are to have extension IDs match up (the Vim plugin depends on it) and to make it easier for you to update.
In its current state, the Pyhton script will die if you update/alter the Extension while Chrome is running. The way around this is to execute:
Then open the Chrome Extensions panel and reload it (or restart Chrome). This annoyance is being worked on.