Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@rochacbruno
Last activeDecember 17, 2025 06:57
    • Star(49)You must be signed in to star a gist
    • Fork(5)You must be signed in to fork a gist

    Select an option

    Save rochacbruno/9e4f4c471e849276f11562272db446b0 to your computer and use it in GitHub Desktop.
    Micro Key Bindings

    https://github.com/zyedidia/micro/blob/master/runtime/help/defaultkeys.mdhttps://github.com/zyedidia/micro/blob/master/runtime/help/commands.mdhttps://github.com/zyedidia/micro/blob/master/runtime/help/keybindings.md

    Commands

    Ctrl+E to open command panel

    • replacereplace 'search' 'value' 'flags'?
    • replaceallreplace 'search' 'new'
    • runrun sh-command
    • vsplitvsplit filename [opens right]
    • hsplithsplit filename [opens down]
    • tabtab filename [opens new tab]
    • tabswitchtabswitch 1.. [switch to numbered tab]
    • textfiltertextfilter 'sh-command' [textfilter sort -n]

    Key Bindings

    General

    • Ctrl+r - Toggle Line Numbers
    • Ctrl+e - Command bar
    • Ctrl+f - search
    • Ctrl+n - next in search
    • Ctrl+p - previous in search
    • Ctrl+g - Help
    • Alt+g - bindings
    • Ctrl+l - Goto line
    • Ctrl+b - Shell
    • Ctrl+q - quit

    File

    • Ctrl+s - Save
    • Ctrl+o - open

    Splits

    • Ctrl+'\' - Split Right
    • Ctrl+] - Split Left
    • Alt+| - New view same file on Right
    • Ctrl+w - Switch split

    Tabs

    • Ctrl+T - New Tab
    • Ctrl+Alt+> - Next Tab
    • Ctrl+Alt+< - Prev Tab

    Editing

    • Ctrl+c - Copy
    • Ctrl+v - Paste
    • Ctrl+x - Cut
    • Ctrl+k - Cut Line
    • Ctrl+z - Undo
    • Ctrl+y - Redo
    • Ctrl+d - Duplicate line
    • Ctrl+a - Select all
    • home - Start of line
    • end - End of line
    • Ctrl+home - Doc start
    • Ctrl+end - Doc end
    • Ctrl+Left - Jump word left
    • Ctrl+Shift+Left - Select word left
    • Ctrl+Right - Jump word right
    • Ctrl+Shift+Right - Select word right
    • Shift+home - Select until start of line
    • Shift+end - Select until end of line
    • Alt+Up - Move Line or selection UP
    • Alt+Down - Move Line or selection DOWN
    • Alt+Backspace - Delete word left

    Multi cursor

    • Ctrl+MouseLEft - Apply multi cursors
    • Alt+n - Apply multi-cursor for matched word
    • Alt-x - Skip Multi-cursor for matched word
    • Alt-m - Apply multi cursor at the beginning at selection lines
    • Alt+p / Alt+c - Remove multicursor / Remove all
    • Alt+Shift+Up - Add Multicursor Up
    • Alt+Shift+Down - Add Multicursor Down

    init.lua commands

    These are some custom commands added via~/.config/micro/init.luasource

    • Alt+b - build (go run, cargo play, python3)This will run the current file in foreground and wait until you press anykey to return back to the editing buffer.
    • Alt+o - print output (go run, cargo play, python3)This will run the current file in foreground show output in new bottom panel
    • Alt+t - Test (go test, cargo test, python3 -m pytest)This will run current file's test cases and wait any key to return.
    • Alt+f - Format (go fmt, cargo fmt, black -l 79)This will format the current editing file, save it and reload it.
    • Alt+i - Interact (rusti, ipython)Open current file in interactive mode on REPL
    • Alt+l - Lint (clippy, flake8)Run Linters in the current file, give feedback in the same screen
    • Alt+y - Sort imports (isort)
    @movahhedi
    Copy link

    I wish GitHub had a like button.

    @RichardFevrier
    Copy link

    I wish GitHub had a like button.

    me too 👍️

    @yrep
    Copy link

    Ctrl+p - Paste - doesn't work!

    @rochacbruno
    Copy link
    Author

    @yrep maybe your terminal intercepts ctrl+p, then you can paste with Ctrl+V or Ctrl+shift+v

    @rochacbruno
    Copy link
    Author

    Copy link

    https://gist.github.com/rochacbruno/... can't find this file

    @rochacbruno
    Copy link
    Author

    Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

    [8]ページ先頭

    ©2009-2025 Movatter.jp