]> git.lizzy.rs Git - micro.git/blob - runtime/help/defaultkeys.md
Syntax Highlight Overhaul (#568)
[micro.git] / runtime / help / defaultkeys.md
1 #Default Keys
2
3 Below are simple charts of the default hotkeys and their functions.
4 For more information about binding custom hotkeys or changing
5 default bindings, please run `>help keybindings`
6
7 Please remember that *all* keys here are rebindable!
8 If you don't like it, you can change it!
9
10 (We are not responsible for you forgetting what you bind keys to.
11  Do not open an issue because you forgot your keybindings.)
12
13 #Power user
14 +--------+---------------------------------------------------------+
15 | Ctrl+E | Switch to the micro command prompt to run a command.    |
16 |        | (See `>help commands` for a list of commands. )         |
17 +--------+---------------------------------------------------------+
18 | Ctrl+B | Run shell commands in micro's current working directory.|
19 +--------+---------------------------------------------------------+
20
21 #Navigation
22
23 +--------+---------------------------------------------------------+
24 | Key    | Description of function                                 |
25 |--------+---------------------------------------------------------+
26 | Arrows | Move the cursor around your current document.           |
27 |        | (Yes this is rebindable to the vim keys if you want.)   |
28 +--------+---------------------------------------------------------+
29 | Shift+ | Move and select text.                                   |
30 | Arrows |                                                         |
31 +--------+---------------------------------------------------------+
32 | Home   | Move to the beginning of the current line. (Naturally.) |
33 +--------+---------------------------------------------------------+
34 | End    | Move to the end of the current line.                    |
35 +--------+---------------------------------------------------------+
36 | PageUp | Move cursor up lines quickly.                           |
37 +--------+---------------------------------------------------------+
38 | PageDn | Move cursor down lines quickly.                         |
39 +--------+---------------------------------------------------------+
40 | Ctrl+L | Jump to line in current file. ( Prompts for line # )    |
41 +--------+---------------------------------------------------------+
42 | Ctrl+W | Move between splits open in current tab.                |
43 |        | (See vsplit and hsplit in `>help commands`)             |
44 +--------+---------------------------------------------------------+
45 | Ctrl+T | Open a new tab.                                         |
46 +--------+---------------------------------------------------------+
47 | Alt+,  | Move to the previous tab in the tablist.                |
48 |        | (This works like moving between file buffers in nano)   |
49 +--------+---------------------------------------------------------+
50 | Alt+.  | Move to the next tab in the tablist.                    |
51 +--------+---------------------------------------------------------+
52
53 #Find Operations
54
55 +--------+---------------------------------------------------------+
56 | Ctrl+F | Find text in current file. ( Prompts for text to find.) |
57 +--------+---------------------------------------------------------+
58 | Ctrl+N | Find next instance of current search in current file.   |
59 +--------+---------------------------------------------------------+
60 | Ctrl+P | Find prev instance of current search in current file.   |
61 +--------+---------------------------------------------------------+
62
63 #File Operations
64
65 +--------+---------------------------------------------------------+
66 | Ctrl+Q | Close current file. ( Quits micro if last file open. )  |
67 +--------+---------------------------------------------------------+
68 | Ctrl+O | Open a file. ( Prompts you to input filename. )         |
69 +--------+---------------------------------------------------------+
70 | Ctrl+S | Save current file.                                      |
71 +--------+---------------------------------------------------------+
72
73 #Text operations
74
75 +--------+---------------------------------------------------------+
76 | Ctrl+A | Select all text in current file.                        |
77 +--------+---------------------------------------------------------+
78 | Ctrl+X | Cut selected text.                                      |
79 +--------+---------------------------------------------------------+
80 | Ctrl+C | Copy selected text.                                     |
81 +--------+---------------------------------------------------------+
82 | Ctrl+V | Paste selected text.                                    |
83 +--------+---------------------------------------------------------+
84 | Ctrl+K | Cut current line. ( Can then be pasted with Ctrl+V)     |
85 +--------+---------------------------------------------------------+
86 | Ctrl+D | Duplicate current line.                                 |
87 +--------+---------------------------------------------------------+
88 | Ctrl+Z | Undo actions.                                           |
89 +--------+---------------------------------------------------------+
90 | Ctrl+Y | Redo actions.                                           |
91 +--------+---------------------------------------------------------+
92
93 #Other
94 +--------+---------------------------------------------------------+
95 | Ctrl+G | Open the help file.                                     |
96 +--------+---------------------------------------------------------+
97 | Ctrl+H | Alternate backspace.                                    |
98 |        | (Some old terminals don't support the Backspace key .)  |
99 +--------+---------------------------------------------------------+
100 | Ctrl+R | Toggle the line number ruler. ( On the lefthand side.)  |
101 +--------+---------------------------------------------------------+
102
103 #Emacs style actions
104
105 +--------+---------------------------------------------------------+
106 | Alt+F  | Move to the end of the next word. (To the next space.)  |
107 +--------+---------------------------------------------------------+
108 | Alt+B  | Move to the beginning of the previous word.             |
109 +--------+---------------------------------------------------------+
110 | Alt+A  | Alternate Home key. ( Move to beginning of line. )      |
111 +--------+---------------------------------------------------------+
112 | Alt+E  | Alternate End key. ( Move to the end of line.)          |
113 +--------+---------------------------------------------------------+
114 | Alt+P  | Move cursor up. ( Same as up key. )                     |
115 +--------+---------------------------------------------------------+
116 | Alt+N  | Move cursor down. ( Same as down key. )                 |
117 +--------+---------------------------------------------------------+
118
119 #Function keys.
120
121 Warning! The function keys may not work in all terminals! 
122 +--------+---------------------------------------------------------+
123 | F1     | Open help.                                              |
124 +--------+---------------------------------------------------------+
125 | F2     | Save current file.                                      |
126 +--------+---------------------------------------------------------+
127 | F3     | Find in current file. ( Same as Ctrl+F )                |
128 +--------+---------------------------------------------------------+
129 | F4     | Close current file. (Quit if only file.)                |
130 +--------+---------------------------------------------------------+
131 | F7     | Find in current file. (Same as Ctrl+F)                  |
132 +--------+---------------------------------------------------------+
133 | F10    | Close current file.                                     |
134 +--------+---------------------------------------------------------+
135
136 #Macros
137
138 Micro supports the use of keyboard macros. Simply press Ctrl+U to
139 begin recording a macro and press Ctrl+U to stop recording.
140
141 Press Ctrl+J to run your recorded macro.