Skip to content

Instantly share code, notes, and snippets.

@Sunitha
Last active December 22, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sunitha/6484849 to your computer and use it in GitHub Desktop.
Save Sunitha/6484849 to your computer and use it in GitHub Desktop.
an autohotokey script to operate your windows vim-likely.
; vim-like key-bind
vk20sc039 & h:: Send, {Left}
vk20sc039 & l:: Send, {Right}
vk20sc039 & k:: Send, {Up}
vk20sc039 & j:: Send, {Down}
vk20sc039 & z:: Send, #d
vk20sc039 & vk20sc039 :: Send, {Space}
vk20sc039 & i:: Send, {F2}{Home}
vk20sc039 & a:: Send, {F2}{End}
vk20sc039 & y:: Send, ^{c}
vk20sc039 & p:: Send, ^{v}
vk20sc039 & c:: Send, {Delete}
vk20sc039 & x:: Send, ^{c}{Delete}
vk20sc039 & u:: Send, ^{z}
vk20sc039 & v:: Send, +{Space}
vk20sc039 & /:: Send, ^{f}
vk20sc039 & n::
If(GetKeyState("Shift")){
Send, +{F3}
}Else{
Send, {F3}
}
Return
vk20sc039 & 1:: Send, {F1}
vk20sc039 & 2:: Send, {F2}
vk20sc039 & 3:: Send, {F3}
vk20sc039 & 4:: Send, {F4}
vk20sc039 & 5:: Send, {F5}
vk20sc039 & 6:: Send, {F6}
vk20sc039 & 7:: Send, {F7}
vk20sc039 & 8:: Send, {F8}
vk20sc039 & 9:: Send, {F9}
vk20sc039 & 0:: Send, {F10}
vk20sc039 & -:: Send, {F11}
vk20sc039 & ^:: Send, {F12}
; vk20sc039 & Ctrl & F:: Send, {PageUp}
; vk20sc039 & Ctrl & D:: Send, {PageDn}
; to prevent to ignore Space when Space pressed only without other keys.
vk20sc039 :: Send, {Space}
;無変換単独 = Escape
vk1Dsc07B::Send,{Blind}{Esc}
;変換単独 = 全角/半角キー
vk1Csc079::Send,{Blind}{sc029}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment