emacs快捷键整理
光标控制
| 快捷键 | 功能 |
|---|---|
| C-v | 向下移动一屏幕 |
| M-v | 向上移动一屏幕 |
| C-l | 将光标所在行置于屏幕中央 |
| C-p | previous lines |
| C-n | next lines |
| C-b | 向后移动一个字符 |
| C-f | 向前移动一个字符 |
| M-f | 向前移动一个单词 |
| M-b | 向后移动一个单词 |
| C-a | 移动到行首 |
| C-e | 移动到行尾 |
| M-a | 移动到段首 |
| M-e | 移动到段尾 |
| M-< | Move to the beginning of the whole text |
| M-> | move to the end of the whole text |
重复输入
C-u 加 要重复的数字 加命令
取消命令
, C-g
删除命令
| 快捷键 | 功能 |
|---|---|
C-d |
delete the next charater after the cursor |
M-d |
kill the word after the cursor |
C-k |
kill from the current cursor position to the end of the line |
M-k |
kill from the current cursor postion to the end of the sentences |
Undo
C-/
File
| 快捷键 | 功能 |
|---|---|
| C-x C-f | find a file |
| C-x C-s | save the file |
| C-x s | save all buffer |
搜索
C-s 向后搜索 C-r向前索索
窗口
C-x 2 打开2个窗口
C-x o 切换到另一个窗口
C-M-v 移动另一个窗口的内容
帮助
C-h
C-h c for a very simple descriptation