VIM - Lecture notes 1-6 PDF

Title VIM - Lecture notes 1-6
Author chloe king
Course Web Systems
Institution University of Technology Sydney
Pages 3
File Size 82.7 KB
File Type PDF
Total Downloads 27
Total Views 142

Summary

UTS...


Description

Vim Text editor in UNIX

Modes Normal mode 

Start o

ESC

Insert mode 

Edit text o i o

a

Command mode 

Issue commands o :

Visual mode 

V

Navigation 

UP



DOWN o J



LEFT o

H

RIGHT o

L

o



K

Commands Save 

W enter

Quit without saving 

:q!

Open copy saved 

ls

Go to line specific line



G

Join lines 

J

Deleting Normal mode Individual characters or words 

dd

 

dw x

Command mode 

:315, 320d

Search and replace Normal mode Search 

/

Replace 

:%/abc/ABC/g o All files, search, for pattern, replace with, globally o

abc is what you want to replace

o

ABC is what you want to replace it with

Copy and paste Cut  

d :d

Copy 

:y

Paste 

:p

Yank  

:,



M  y’  p...


Similar Free PDFs