Created
November 11, 2010 10:20
-
-
Save sifu/672305 to your computer and use it in GitHub Desktop.
save file; focus last chrome window; reload the current page;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmap <F10> :wall<Cr>:silent execute "!xdotool search Chrome windowfocus --sync key --clearmodifiers ctrl+r" <Cr> <C-l> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
create a shell script: /usr/local/bin/update_chrome
#!/bin/sh
/usr/bin/osascript << EOF
tell application "Google Chrome"
activate
tell application "System Events" to keystroke "r" using command down
end tell
EOF
exit
and then
nmap :wall:silent execute "!update_chrome"
--> works with vim in the shell and MacVim