Posted On April 16, 2019

How to Copy and Paste in VIM / VI

kimconnect 0 comments
blog.KimConnect.com >> Linux >> How to Copy and Paste in VIM / VI

While reading or in editing mode, press ESC twice

Move the cursor to the desired location

Press ‘v’ to enter Visual mode

Use the up/down/left/right buttons to select text or entire lines

Press ‘y’ to yank (copy)

Move cursor over to the desired pasting location

Press ‘p’ to paste

Press ESC twice to exit editing mode

Type ‘:wq’ to write and quit vim editor

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Linux: How To Install Visual Studio Code

Intro Bypassing any discussions about choosing Visual Studio Code (VS Code) over Atom or Sublime…

Linux: How to create samba shares for Windows

Install Samba: yum install samba   SELinux:  setsebool -P samba_enable_home_dirs 1   Run the utility…

Linux: how to bypass login keyring prompts

Error Message:  Something along the line of 'keyring default keyring but it is locked' Resolution:…
Other project: DragonCoin.com