Skip to content

Instantly share code, notes, and snippets.

@charlesroper
Created March 23, 2010 14:30
Show Gist options
  • Select an option

  • Save charlesroper/341228 to your computer and use it in GitHub Desktop.

Select an option

Save charlesroper/341228 to your computer and use it in GitHub Desktop.
; Bind [Shift-Enter] to [Escape]
^Enter::Send {ESC}{ESC}
; E Text Editor Macros
; Only enable these macros for the E window
#IfWinActive, ahk_class wxWindowClassNR
; [Ctrl-Shift->] Shift text right
^+>::Send !tr
; [Ctrl-Shift-<] Shift text left
^+<::Send !tl
; [Ctrl-Shift-J] Join lines
^+j::Send {ESC}$dwi{SPACE}
; [Ctrl-Shift-Alt-J] Join lines and return to line start
^+!j::Send {ESC}$dw{SPACE}{^}i
; [Ctrl-Enter] Open new line under current one
+Enter::Send {ESC}o
; [Ctrl-Shift-Enter] Open new line above current one
^+Enter::Send {ESC}O
; [C-a] <Home>
^a::Send {^}
; [C-e] <End>
^e::Send {$}
; Unbind cursor keys - Vim training. Feel the pain, reap the rewards!
Up::Return
Down::Return
Left::Return
Right::Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment