Movement | |
F5 | Move to next line |
Ctrl-A | Move to start of line |
Ctrl-F, rightarrow | Move forward by characters |
Ctrl-E | Move to end of line |
Ctrl-B, leftarrow | Move backward by characters |
Ctrl-N, downarrow | Move forward by lines |
Ctrl-P, uparrow | Move backward by lines |
Ctrl-V, PgDn | Move forward by pages |
Esc B, PgUp | Move backward by pages |
Esc <, Ctrl-Home | Move to start of buffer |
Esc >, Ctrl-End | Move to end of buffer |
Ctrl-X L | Move to line number |
Esc B, Ctrl-leftarrow | Backup by words |
Esc F, Ctrl-rightarrow | Advance by words |
Windows | |
Ctrl-X N, F6 | Move to the next window |
Ctrl-X P | Move to the previous window |
Ctrl-X 1 | Make current window only one |
Ctrl-X 2 | Split current window |
Esc N, End | Move window down |
Esc P, Home | Move window up |
Ctrl-X Z | Enlarge display window |
Esc Z | Shrink window |
Ctrl-X T | Reposition window |
Ctrl-L | Refresh the screen |
Ctrl-X D | Delete a window |
Deleting | |
Ctrl-X O | Delete blank lines |
Ctrl-D, Del | Forward delete |
Ctrl-H, 0x7F | Backward delete |
Alt-F Del | Undelete a character |
Ctrl-J | Delete a line |
Esc J, Alt-F F2 | Undelete a line |
Alt-F Ctrl-Right Arrow, Alt-F Ctrl-Left Arrow | Undelete a word |
Esc D | Delete forward word |
Esc H | Delete backward word |
Cutting/Pasting | |
Ctrl-K | Kill forward |
Ctrl-Y, Ctrl-X K, F10 | Paste from kill buffer |
Esc 9, F9 | Cut region to kill buffer |
Esc 8, F8 | Copy region to kill buffer |
F7, Esc . | Set mark |
Ctrl-X . | Remove mark |
Esc X | Swap dot and mark |
Esc W | Select word |
Files | |
Alt-F N | Edit next file |
Alt-F R | Get a file, read only |
Alt-F V | Get a file, read write |
Alt-F W | Write a file |
Alt-F U | Turn off buffer changed bits |
Alt-F S | Save current file |
Alt-F F | Adjust file name |
Alt-F M | Write modified files |
Alt-F I | Insert a file at dot |
Exit | |
Ctrl-@, Ctrl-G | Abort out of things |
Ctrl-C, Alt-F Q | Quit |
Alt-F X, Alt-X | Write modified files and exit |
Ctrl-X ( | Begin macro |
Ctrl-X ) | End macro |
F12 | Start/End macro |
Ctrl-X E, F11 | Execute macro |
Search | |
Ctrl-S | Search forward |
Ctrl-R | Search backwards |
Esc R | Search and replace |
Esc Q | Query search and replace |
F4, Alt-F F4 | Search |
F2 | Search for the same string |
C and C++ | |
Ctrl-W, F3 | Toggle over parentheses |
Ctrl-X ], Alt-F10 | increase indentation level |
Ctrl-X [, Alt-F9 | decrease indentation level |
Esc I | optimize tabbing in line |
Ctrl-X / | convert /* */ to // |
Configuration | |
Alt-F2 | display_norm_fg |
Alt-F1 | display_norm_bg |
Alt-F4 | display_mode_fg |
Alt-F3 | display_mode_bg |
Alt-F5 | display_mark_fg |
Alt-F6 | display_mark_bg |
Alt-F7 | display_eol_bg |
Alt-C | Save configuration |
Process | |
Ctrl-Z | Run CLI in a subjob |
Ctrl-X ! | Run a command in a subjob |
Ctrl-X # | Filter buffer through program |
Ctrl-X @, Alt-Z | Run program and gather output |
Buffers | |
Alt-F B | Display list of buffers |
Ctrl-X B | Switch a window to a buffer |
Ctrl-X W, Alt-B | Switch to next buffer |
Other | |
Ctrl-X F | Set fill column |
Ctrl-X A | Word wrap line |
Ctrl-X = | Show the cursor position |
Ctrl-T | Twiddle characters |
Ctrl-I, Tab | Insert tab |
Alt-F T | Set hardware tabs |
Ctrl-M | Insert CR-LF |
Ctrl-O, Alt-F Ins | Open up a blank line |
Ctrl-Q, Ctrl-X Q | Insert literal |
Esc T | Toggle column region mode |
Ins | Toggle insert/overwrite mode |
Esc U | Upper case word/region |
Esc L | Lower case word/region |
Esc C | Initial capitalize word |
Alt-E | Toggle hires mode |
Alt-E | Toggle hires mode |
Esc downarrow | Set into advance mode |
Esc uparrow | Set into backup mode |
Alt-F D | File and date stamp |
comments powered by Disqus