Inserting New Text
- A
- Append at the end of the current line.
- I
- Insert from the beginning of a line.
- O
- (letter oh) Enter insert mode in a new line above the current cursor position.
- a
- Enter insert mode, the characters typed in will be inserted after the current cursor position. A count inserts all the text that had been inserted that many times.
- i
- Enter insert mode, the characters typed in will be inserted before the current cursor position. A count inserts all the text that had been inserted that many times.
- o
- Enter insert mode in a new line below the current cursor position.
Moving the Cursor Within the File
- ^B
- Scroll backwards one page. A count scrolls that many pages.
- ^D
- Scroll forwards half a window. A count scrolls that many lines.
- ^F
- Scroll forwards one page. A count scrolls that many pages.
- ^H
- Move the cursor one space to the left. A count moves that many spaces.
- ^J
- Move the cursor down one line in the same column. A count moves that many lines down.
- ^M
- Move to the first character on the next line.
- ^N
- Move the cursor down one line in the same column. A count moves that many lines down.
- ^P
- Move the cursor up one line in the same column. A count moves that many lines up.
- ^U
- Scroll backwards half a window. A count scrolls that many lines.
- $
- Move the cursor to the end of the current line. A count moves to the end of the following lines.
- %
- Move the cursor to the matching parenthesis or brace.
- ^
- Move the cursor to the first non-whitespace character.
- (
- Move the cursor to the beginning of a sentence.
- )
- Move the cursor to the beginning of the next sentence.
- {
- Move the cursor to the preceding paragraph.
- }
- Move the cursor to the next paragraph.
- |
- Move the cursor to the column specified by the count.
- Move the cursor to the first non-whitespace character in the next line.
- -
- Move the cursor to the first non-whitespace character in the previous line.
- _
- Move the cursor to the first non-whitespace character in the current line.
- 0
- (Zero) Move the cursor to the first column of the current line.
- B
- Move the cursor back one word, skipping over punctuation.
- E
- Move forward to the end of a word, skipping over punctuation.
- G
- Go to the line number specified as the count. If no count is given, then go to the end of the file.
- H
- Move the cursor to the first non-whitespace character on the top of the screen.
- L
- Move the cursor to the first non-whitespace character on the bottom of the screen.
- M
- Move the cursor to the first non-whitespace character on the middle of the screen.
- W
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




