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: A Quick Sequence of Starting and Stopping an App

Check to see if SeaHorse is broken kimconnect@nuc:# seahorseGtk-Message: 08:52:44.606: Failed to load module "canberra-gtk-module"Gtk-Message:…

LDAP Ubuntu Client Setup

Install the client application: sudo apt-get update sudo apt-get -y install libnss-ldapd libpam-ldapd ldap-utils nscd…

LAMPP Passwords Change

Change ProFTP password: vim /opt/lampp/etc/proftpd.conf <?-- delete the last line in password, leave the first…