Skip to content

Instantly share code, notes, and snippets.

@a1ip
Last active July 29, 2023 01:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a1ip/ed08b42572263d334632789c80f82dd1 to your computer and use it in GitHub Desktop.
Save a1ip/ed08b42572263d334632789c80f82dd1 to your computer and use it in GitHub Desktop.
Micro Editor hotkeys https://git.io/micro-editor

Micro Editor hotkeys

Cursor Moving

Keys Action
Up CursorUp
Down CursorDown
Right CursorRight
Left CursorLeft
AltLeft WordLeft
AltRight WordRight
AltUp MoveLinesUp
AltDown MoveLinesDown
CtrlLeft StartOfLine
CtrlRight EndOfLine
CtrlUp CursorStart
CtrlHome CursorStart
CtrlDown CursorEnd
CtrlEnd CursorEnd
Alt-{ ParagraphPrevious
Alt-} ParagraphNext
Home StartOfLine
End EndOfLine
PageUp CursorPageUp
PageDown CursorPageDown
CtrlF Find
CtrlN FindNext
CtrlP FindPrevious
CtrlL JumpLine

Text Selection

Keys Action
ShiftUp SelectUp
ShiftDown SelectDown
ShiftRight SelectRight
ShiftLeft SelectLeft
AltShiftRight SelectWordRight
AltShiftLeft SelectWordLeft
CtrlShiftLeft SelectToStartOfLine
ShiftHome SelectToStartOfLine
CtrlShiftRight SelectToEndOfLine
ShiftEnd SelectToEndOfLine
CtrlShiftUp SelectToStart
CtrlShiftDown SelectToEnd
CtrlA SelectAll

Text Edit

Keys Action
Enter InsertNewline
CtrlH Backspace
Backspace Backspace
Alt-CtrlH DeleteWordLeft
Alt-Backspace DeleteWordLeft
Tab IndentSelection,InsertTab
Backtab OutdentSelection,OutdentLine
CtrlZ Undo
CtrlY Redo
CtrlC Copy
CtrlX Cut
CtrlK CutLine
CtrlD DuplicateLine
CtrlV Paste
Delete Delete

Files

Keys Action
CtrlO OpenFile
CtrlS Save

Important actions

Keys Action
CtrlQ Quit
CtrlG ToggleHelp
CtrlR ToggleRuler
CtrlB ShellMode
CtrlE CommandMode
CtrlU ToggleMacro
CtrlJ PlayMacro

Splits and Tabs

Keys Action
CtrlW NextSplit
Unsplit
VSplit
HSplit
PreviousSplit
CtrlT AddTab
Alt, PreviousTab
Alt. NextTab

Emacs-style keybindings

Keys Action
Alt-f WordRight
Alt-b WordLeft
Alt-a StartOfLine
Alt-e EndOfLine

Integration with file managers

Keys Action
F1 ToggleHelp
F2 Save
F3 Find
F4 Quit
F7 Find
F10 Quit
ESc Escape

Mouse bindings

Keys Action
MouseWheelUp ScrollUp
MouseWheelDown ScrollDown
MouseLeft MousePress
MouseMiddle PastePrimary
Ctrl-MouseLeft MouseMultiCursor

Multiple cursors bindings

Keys Action
Alt-n SpawnMultiCursor
Alt-m SpawnMultiCursorSelect
Alt-p RemoveMultiCursor
Alt-c RemoveAllMultiCursors
Alt-x SkipMultiCursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment