- 论坛徽章:
- 13
|
本帖最后由 ulovko 于 2012-05-21 21:26 编辑
删除:- Deleting Text
- Deleting text removes it from the screen and copies it to the buffer. Deleting, like many other commands, can be combined with numeric or symbolic options to make more complex and efficient commands like those seen below.
- x - deletes the character under the cursor
- X - deletes the character before the cursor
- xx - deletes x number of characters starting at the cursor and going forward
- xX - deletes x number of characters starting before the cursor and going backward
- dw - deletes current word
- dd - deletes current line
- xdd - deletes x lines
- dxw - deletes x words
- d0 - deletes from current position to beggining of current line
- d$ - deletes from current position to end of line (same as D)
- dG - deletes from cursor to the end of the buffer
- d1G - deletes from cursor to the beginning of the buffer
- ddp - swaps the current line and the line beneath it
复制代码 复制:
- yw yank the selected word
- y$ yank to the end of the line
- (字符数目自选,方向自选!)
- 1yh
- 1yj
- 1yk
- 1yl
复制代码 |
|