Created
May 7, 2013 00:48
-
-
Save kevinburke/5529491 to your computer and use it in GitHub Desktop.
reload open chrome window.
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
function! ReloadChrome() | |
execute 'silent !osascript -e "tell application \"Google Chrome\" to tell the active tab of its first window" ' . | |
\'-e "execute javascript \"window.location.reload();\" " ' . | |
\'-e "end tell" >/dev/null' | |
execute 'silent !clear' | |
endfunction | |
nnoremap <leader>o :call ReloadChrome()<CR><CR>k | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment