Skip to content

Instantly share code, notes, and snippets.

@sampollard
Last active November 16, 2024 23:29
Show Gist options
  • Save sampollard/568b37c9a55b3f580435de07ffeb5ea3 to your computer and use it in GitHub Desktop.
Save sampollard/568b37c9a55b3f580435de07ffeb5ea3 to your computer and use it in GitHub Desktop.
Vim in Windows
; How to view scancodes
; Right-click, "run this script" on this file (not the compiled file!)
; Right click and select "Open"
; View -> Key History and Script Info
; Now you can type things, press F5 to refresh; they appear bottom-up
#NoEnv ; Compatibility with future AutoHotkey releases
SendMode Input ; Tutorials say this is good
;Capslock::Esc ; Map Capslock to Escape
;+Capslock::Capslock ; Map Shift-Capslock to Capslock
Capslock::LCtrl ; Map Capslock to Control
RCtrl & Capslock::Capslock ; Map Shift-Capslock to Capslock
; Match the Mac hotkeys with Ctrl+Function keys
^F10::SoundSet, +1, , mute
^F11::Send {Volume_Down 1}
^F12::Send {Volume_Up 1}
^F7::Media_Prev
^F8::Media_Play_Pause
^F9::Media_Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment