vi, vim Editor:
a) Cursor movement:-
Thanks ,
Vi is the standard file editor for Unix and Vim is the standard file editor for Linux
For Red hat Linux vi and Vim both are same
There are three mode of vi editor
- command mode
- insert mode
- save and Exit Mode
- Command mode is again divided into 3 mode
- Cursor movement
- Copy, paste, delete, undo
- Text search
a) Cursor movement:-
J : Down
K : UP
L : RIGHT
H : LEFT
b) Copy, paste, delete, undo:-
dd : delete particular line
yy : copy particular line
u : Undo
p : paste
ndd : n is the number of line to be deleted
nyy : n is the number of line to be copied
c)Text Search :-
/text
example
/then
2)Insert mode:-
Option I, insert, a ,o, O
i : insert mode start at the point where cursor is. Same is used with
insert option
a : insert mode start after one character
o : insert mode start after one line
O : insert mode start before one line
3) Save and Exit Mode:-
:q : Quiet
:q! : forcely quiet
:wq! : save and forcely quiet
:wq : save and exit
Thanks ,
Very informative post. Keep up the good work. I would really look forward to your other posts
ReplyDeleteDell - Inspiron 15.6" Touch-Screen Laptop - 4GB Memory - 500GB Hard Drive - Black (15RVT-9095BLK)
Dell - Latitude 14.1" Refurbished Laptop - 4GB Memory - 250GB Hard Drive - Gray