Home  >  Q&A  >  body text

visual-studio-code - How to exit vim mode of vscode and return to normal mode

As shown in the picture, I am using this plug-in now. What does it mean when there is also a visual mode?

伊谢尔伦伊谢尔伦2712 days ago6156

reply all(1)I'll reply

  • 某草草

    某草草2017-05-16 16:36:27

    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

    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

    reply
    0
  • Cancelreply