Vim Refresh Safari Mapping


/ Published in: Other
Save to your folder(s)

Place this in your .vimrc and change `r to the mapping of your choice!


Copy this code and paste it in your HTML
  1. nmap `r :!osascript -e 'tell app "Safari"' -e 'activate' -e 'do JavaScript "window.location.reload();" in first document' -e 'end tell'<cr><cr>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.