Step: delete a vi section delete a section is a common operation for editing and analyzing lengthy configuration files or log files. Briefly describe the key points for deleting the vi section. The vi Overview citation does not list the last row mode as a single mode. It is not important to separate the command mode from the last line mode. Step 1. in the last row mode, use: set nu to display the row number is not required. Moving the vi bottom right corner with the cursor will also display the row number. You can correctly find and record the row to delete the start row and the end row. calculate the number of rows to be deleted nn = Delete the row number of the end row-delete the row number of the Start row + 1 manual calculation ...... It is best not to calculate the error 3. In command mode, enter the ndd cursor to move to the start line of the deletion and enter the ndd. N is the result calculated in step 1. To delete tens of thousands of rows (for example, n = 12399), please blindly press 12399dd Tips: 1. the number of segments must be calculated. 2. when running the ndd command, you must first locate the start line of the deletion and enter the ndd in command mode. 3. you can use u to restore ndd input errors.