J-Linux&Shell-W7 Vi (上)

J-Linux&Shell-W7 Vi (上)

1. Judgment

  1. Insert mode is not one of vi's working modes. (×)

  2. In the vi command mode, a is to add new content from the position behind the cursor. (√)

  3. In vi command mode (is the position of the cursor to the first letter of the sentence. (√)

  4. You cannot use page up or page down to turn pages up and down in vi. (×)

2. Multiple choice questions

  1. The following does not belong to the vi working mode is (B)

    A. Insert mode B. Replace mode C. Command mode D. Last line mode

  2. The vi command mode command that can move to the end of the previous word and ignore punctuation is (C)

    A.e B.ge C.gE D.E

  3. The correct description of the 4j command in the vi command mode is (A)

    A. Based on the current cursor position, the cursor moves down four lines.
    B. Based on the current cursor position, insert 4 j characters in the back.
    C. Based on the current cursor position, insert 4 j characters in front.
    D. Based on the current cursor position, the cursor moves up four lines.

3. Indefinite multiple choice

  1. The following description is correct (D)

    A. The division of sentences in the text of the Linux operating system is distinguished by spaces.
    B. The division of words in the text of the Linux operating system is distinguished by blank lines.
    The division of paragraphs in the text of C.linux operating system is divided by. Symbols.
    D. All the above errors.

  2. The correct description of the command G in the vi command mode is (BC)

    A. This command can move the cursor directly to the end of the window.
    B. This command can move the cursor directly to the end of the file.
    C. This command can move the cursor to any line of the file. You need to add a numeric line number before the command.
    D. This command can move the cursor to the beginning of the file.

4. Fill in the blanks

  1. vi insert mode conversion command mode, and the last line mode after the last line command conversion command mode requires the keyboard ESCand ESCkeys respectively.

Five, operation questions

  1. Write the following vi operation commands

(1) Move to the 11th line and move 33 characters to the right.

11G
33l

(2) Add a new line to the current next line, and enter the insert mode "hello world", after entering, exit the insert mode.

o
输入
退出

(3) Move the cursor to the end of the "hello world" line, then insert the "too" character after the input, and exit the insert mode after input.

A
输入
退出
Published 16 original articles · won praise 16 · views 6445

Guess you like

Origin blog.csdn.net/tianxujituan/article/details/105435628