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

Installing Kubernetes on CentOS 8.1

Step 1: Preparing All Nodes # Installing prerequisites # Update before installation sudo su yum…

Open VPN Client Configuration Fix

OpenVPN client works very well on Windows 7 machines. However, its Windows 10 and Linux…

How to Remove Apps in CentOS/Redhat

Check the repo directory: [root@localhost ~]# ls /etc/yum.repos.d CentOS-Base.repo CentOS-Sources.repo CentOS-CR.repo CentOS-Vault.repo CentOS-Debuginfo.repo docker-ce.repo CentOS-fasttrack.repo…