Wednesday, 30 April 2014

Vi Editor Shorcuts | Most useful shortcuts Vi Editor

1. Cursor Navigation
j     next line
k     previous line
h     left
l     right
shiftg     bottom of document
gg     top of document



 2. Clipboard
dw     delete word
dd     delete line
p     put after cursor
P     put before cursor
yw     copy word
yy     copy line
 
3. Fast Search
/     Search Term
n     next
N     previous

4. Command Mode
:     enter command mode
:w     write
:q     quit
:e  <filename> open <filename>
Esc     escape command mode

5. From Normal to Edit Mode
i     Insert at current position
I     Insert at start of line
A     Append to end of line
o     Insert Line Below
O     Insert Line Above

No comments:

Post a Comment