"VI Editor Presentation": Accelerating Designs
"VI Editor Presentation": Accelerating Designs
http://www.nsysinc.com
DELETION
Delete word(s)
dw, ndw
Delete from present cursor position to end of line
D
Delete a line
dd
Deletes n lines starting from current line
ndd
Deleting character
x,nx
CHANGING TEXT
Change word(s)
cw,ncw
Change text from current cursor position to end of line
C or c$
Change entire line
cc
Change n number of lines
ncc
Change text from present cursor location to final cursor position
after motion.
c{motion}
COPYING TEXT
Copy word(s)
dw, ndw
Copy a line
yy
Copy n lines starting from current line
nyy
Copy n lines starting from current line to a named buffer
"[a-z]nyy -"n" is the no. of lines to be copied
Copy text from present cursor location to final cursor position after
motion
y{motion}
e.g.1: "yG" deletes test fro present cursor location to end of file.
e.g.2: "y$" copy text from present cursor position to end of line.