9 ms·
And if you are on a mac, you can do something like this instead of the xdotool line: silent !osascript ~/.vim/refresh.scpt Where refresh.scpt looks like this:
by owyn 16y ago
And if you are on a mac, you can do something like this instead of the xdotool line:
silent !osascript ~/.vim/refresh.scpt
Where refresh.scpt looks like this:
tell application "Safari"
activate
set rURL to URL of current tab of front window
set URL of current tab of front window to rURL
end tell
Or like this (this form preserves the location on the page)
tell application "Safari"
activate
end tell
tell application "System Events"
tell process "Safari"
keystroke "r" using {command down}
end tell
end tell