Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7325
  • 博文数量: 2
  • 博客积分: 120
  • 博客等级: 入伍新兵
  • 技术积分: 30
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-05 22:47
文章分类
文章存档

2008年(2)

我的朋友
最近访客

分类:

2008-04-17 21:53:09

首先看一下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) |
0

上一篇:Chapter 2

下一篇:没有了

给主人留下些什么吧!~~