首先看一下emacs editing mode都提供了哪些命令,这些命令实现了什么功能。
1. For current command line
1) Moving around/cursor motion
character level: CTRL-B, F
word level: ESC-B, F
line level: CTRL-A, E
2) Editing
Delete/Cut:
character level: CTRL-H, D
word level: ESC-BACKSPACE, D
line level: CTRL-U, K
non-blank word: CTRL-W
CTRL-U and CTRL-W are control keys set up by the UNIX terminal interface, not emacs editing mode itself. They are kill and werase.
Undelete/Paste: CTRL-Y (for delete control keys listed above other than character level).
Transpose two characters: CTRL-T
Change word uppercase or lowercase: ESC-U, L, C
Quote insert: CTRL-V which is also set up by the UNIX terminal interface, lnext.
3) Textual Completion
Command Completion, Filename Completion, Username Completion, Hostname Completion and Variable Completion
List: CTRL-X-!, /, ~, @, $
Attempt: ESC--!, /, ~, @, $
Another two: TAB and ESC-?, also to attempt and just to list.
4) Others
Clear the screen: CTRL-L which is same as the clear command
2. For previous commands (based on the history list)
Recall: CTRL-P, N, R
阅读(571) | 评论(0) | 转发(0) |