Skip to content

Instantly share code, notes, and snippets.

@richleland
Created March 8, 2012 17:20
Show Gist options
  • Save richleland/2002179 to your computer and use it in GitHub Desktop.
Save richleland/2002179 to your computer and use it in GitHub Desktop.
" reloads chrome's active tab from vim by pressing ,r
function! ChromeReload()
if has("gui_macvim")
:silent !osascript ~/.vim/reloadchrome.scpt > /dev/null 2>&1
endif
endfunction
nmap <leader>r :call ChromeReload()<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment