VIM introduces Visual mode. To select a paragraph of text, first move the cursor to the beginning of the paragraph, press v in normal mode to enter visual mode, and then move the cursor to the end of the paragraph. It should be noted that the character where the cursor is located is included in the selection. At this time, you can perform some operations on the selected text. Commonly used (visual mode) commands are: x or d cut (that is, delete, and the selected text enters the clipboard) y copy r character and replace all characters For the new character u U ~, all letters become lowercase, uppercase, and reverse case respectively
After entering the command, VIM will return to normal mode. At this time, you can press p or P to paste. Commands for copy and paste in normal mode:
v Enter visual mode p or P paste the contents of the clipboard at the current position, p sticks behind the character where the cursor is, and P sticks in front
Press cw to return to normal editing mode
VIM introduces Visual mode. To select a paragraph of text, first move the cursor to the beginning of the paragraph, press v in normal mode to enter visual mode, and then move the cursor to the end of the paragraph. It should be noted that the character where the cursor is located is included in the selection. At this time, you can perform some operations on the selected text. Commonly used (visual mode) commands are:
x or d cut (that is, delete, and the selected text enters the clipboard)
y copy
r character and replace all characters For the new character
u U ~, all letters become lowercase, uppercase, and reverse case respectively
v Enter visual mode
p or P paste the contents of the clipboard at the current position, p sticks behind the character where the cursor is, and P sticks in front