3 Below are simple charts of the default hotkeys and their functions. For more
4 information about binding custom hotkeys or changing default bindings, please
5 run `> help keybindings`
7 Please remember that *all* keys here are rebindable! If you don't like it, you
12 | Key | Description of function |
13 |---------- |-------------------------------------------------------------------------------------------------- |
14 | Ctrl-e | Open a command prompt for running commands (see `> help commands` for a list of valid commands). |
15 | Tab | In command prompt, it will autocomplete if possible. |
16 | Ctrl-b | Run a shell command (this will close micro while your command executes). |
20 | Key | Description of function |
21 |---------------------------- |------------------------------------------------------------------------------------------ |
22 | Arrows | Move the cursor around |
23 | Shift-arrows | Move and select text |
24 | Alt(Ctrl on Mac)-LeftArrow | Move to the beginning of the current line |
25 | Alt(Ctrl on Mac)-RightArrow | Move to the end of the current line |
26 | Home | Move to the beginning of text on the current line |
27 | End | Move to the end of the current line |
28 | Ctrl(Alt on Mac)-LeftArrow | Move cursor one word left |
29 | Ctrl(Alt on Mac)-RightArrow | Move cursor one word right |
30 | Alt-{ | Move cursor to previous empty line, or beginning of document |
31 | Alt-} | Move cursor to next empty line, or end of document |
32 | PageUp | Move cursor up one page |
33 | PageDown | Move cursor down one page |
34 | Ctrl-Home or Ctrl-UpArrow | Move cursor to start of document |
35 | Ctrl-End or Ctrl-DownArrow | Move cursor to end of document |
36 | Ctrl-l | Jump to a line in the file (prompts with #) |
37 | Ctrl-w | Cycle between splits in the current tab (use `> vsplit` or `> hsplit` to create a split) |
41 | Key | Description of function |
42 |-------- |-------------------------- |
43 | Ctrl-t | Open a new tab |
44 | Alt-, | Previous tab |
49 | Key | Description of function |
50 |---------- |------------------------------------------ |
51 | Ctrl-f | Find (opens prompt) |
52 | Ctrl-n | Find next instance of current search |
53 | Ctrl-p | Find previous instance of current search |
57 | Key | Description of function |
58 |---------- |------------------------------------------------------------------ |
59 | Ctrl-q | Close current file (quits micro if this is the last file open) |
60 | Ctrl-o | Open a file (prompts for filename) |
61 | Ctrl-s | Save current file |
65 | Key | Description of function |
66 |------------------------------------ |------------------------------------------ |
67 | Ctrl(Alt on Mac)-Shift-RightArrow | Select word right |
68 | Ctrl(Alt on Mac)-Shift-LeftArrow | Select word left |
69 | Alt(Ctrl on Mac)-Shift-LeftArrow | Select to start of current line |
70 | Alt(Ctrl on Mac)-Shift-RightArrow | Select to end of current line |
71 | Shift-Home | Select to start of current line |
72 | Shift-End | Select to end of current line |
73 | Ctrl-Shift-UpArrow | Select to start of file |
74 | Ctrl-Shift-DownArrow | Select to end of file |
75 | Ctrl-x | Cut selected text |
76 | Ctrl-c | Copy selected text |
78 | Ctrl-k | Cut current line |
79 | Ctrl-d | Duplicate current line |
82 | Alt-UpArrow | Move current line or selected lines up |
83 | Alt-DownArrow | Move current line or selected lines down |
84 | Alt-Backspace or Alt-Ctrl-h | Delete word left |
85 | Ctrl-a | Select all |
86 | Tab | Indent selected text |
87 | Shift-Tab | Unindent selected text |
91 | Key | Description of function |
92 |---------- |---------------------------------------------------------------------------------- |
93 | Ctrl-u | Toggle macro recording (press Ctrl-u to start recording and press again to stop) |
94 | Ctrl-j | Run latest recorded macro |
98 | Key | Description of function |
99 |------------------ |---------------------------------------------------------------------------------------------- |
100 | Alt-n | Create new multiple cursor from selection (will select current word if no current selection) |
101 | Alt-Shift-Up | Spawn a new cursor on the line above the current one |
102 | Alt-Shift-Down | Spawn a new cursor on the line below the current one |
103 | Alt-p | Remove latest multiple cursor |
104 | Alt-c | Remove all multiple cursors (cancel) |
105 | Alt-x | Skip multiple cursor selection |
106 | Alt-m | Spawn a new cursor at the beginning of every line in the current selection |
107 | Ctrl-MouseLeft | Place a multiple cursor at any location |
111 | Key | Description of function |
112 |---------- |-------------------------------------------------------------------------------------- |
113 | Ctrl-g | Open help file |
114 | Ctrl-h | Backspace (old terminals do not support the backspace key and use Ctrl+H instead) |
115 | Ctrl-r | Toggle the line number ruler |
117 ### Emacs style actions
119 | Key | Description of function |
120 |---------- |-------------------------- |
121 | Alt-f | Next word |
122 | Alt-b | Previous word |
123 | Alt-a | Move to start of line |
124 | Alt-e | Move to end of line |
128 Warning! The function keys may not work in all terminals!
130 | Key | Description of function |
131 |------ |-------------------------- |