/ Published in: Other
Place this in your .vimrc and change `r to the mapping of your choice!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
nmap `r :!osascript -e 'tell app "Safari"' -e 'activate' -e 'do JavaScript "window.location.reload();" in first document' -e 'end tell'<cr><cr>