Linux under the VI Editor for simple paste copy cutting function
If you want to paste the third line in the file into line 15th:
1. Enter your file (in command mode, not edit mode)
2. Move your cursor to the beginning of your third line (with the arrow keys)
3, press V, (you find switching to Visual mode), press the arrow keys, know what you want to select
4. Press Y, and then move the cursor to the end of line 14th.
5. Press P. Complete
-
This method can be used for multi-line paste-and-copy
Span style= "font-size:14px" If you want to cut-and-copy, it's easier (only for single-line)
1. into your file, (in command mode, not edit mode)
2. Move your cursor to the beginning of your third line (with the arrow keys)
3. Press two D (Find the third line is missing)
4, and then move the cursor to the end of Line 14th, press p.
Under the GUI: you can press I into the insertion mode, using the mouse to drag the reverse selection to paste the content, move the cursor to the place to paste, press the middle mouse button (two-button mouse can press the left and right key).
Under the plain text terminal:
Select a text block, using the V
Copy the selected block to the buffer, using Y
Copy entire line, with YY
Open the second file in the same edit window with: SP [filename]
Switch between multiple edit files, using ^WW
Shear block, with D
Cut the entire row with DD
Paste the contents of the buffer, using the P
The command preceded by a number indicating the number of repetitions, plus the letter indicating the name of the buffer used.
To get help, by using: helps [content or commands]
END
Linux under VI Editor paste copy cut function