Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created May 7, 2013 00:48
Show Gist options
  • Save kevinburke/5529491 to your computer and use it in GitHub Desktop.
Save kevinburke/5529491 to your computer and use it in GitHub Desktop.
reload open chrome window.
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