Thursday, 20 February 2014

some basics of Vi editor

Open a Vi editor
Press"I" toinsert the data
for saving a file
(esc):W filename.txt

Move the cursor around the screen
h - Cursor left
j - Cursor down
k - Cursor up
l - Cursor right

deleting single line and single word from the Vi editor

Delete single word by moving the cursor on that word and switch the cmd to command line
i.e (esc) then press X

yCopy current line

Ctrl-FForward one screencwChange word
Ctrl-BBack one screenccChange line
Ctrl-DDown half a screenCChange from current position to end of line
Ctrl-UUp half a screenddDelete current line
Ctrl-EDisplay another line at bottom of screennddDelete n lines
Ctrl-YDisplay another line at top of screen

No comments:

Post a Comment

Cool Blue Outer Glow Pointer