Wednesday, January 24, 2007

Vi Editor !!!

Vi is a full editors now avialable in all unix systems and widley acknowledged as one of the most powerful editors. It has created by Bill Joy ..

Objectives !!!

1,Three Mod functioning
2,input , replace Text and control character
3,Save your works and time
4,Changing test including the case

For Example
vi screen
vi brijesh.txt
-
-
-
Above all Commands used in vi Mode ;;;;!!!
:w -> Save the file and reamin in editing mode above all 'w' to another file
:x -> Save file and quiting the editting the mode
:wq -> Above All
:q -> Quite editing mode without saving the file
:q! -> This override signs is used if have not privelge in file
[ctrl+Z] Suspend from current session .. Use Fg commands to view Bg commands is used for View Background
:set number -> View session by numbers
:o -> Opening new line
;x -> Deleting one character
:r,R,s and S -> replacing one character
vi -r -> Recovering from crash ---> This is will Discuss later
y ,p -> y to copy and p is to paste for eg u need to copy 2 line type 2 than y
c -> Change , b-> begining of the words , 4b -> Move back 4 begining of the words
e-> Move forward end of the words
^ -> Move to first word line
$ -> Move to end of line
1G -> Move begning of the file
40G -> Moves to line 40
G -> Moves to end of the line
Need to start up the file -----> vi + 25 brijesh1.txt here cursor to the 25th Line
vi +brijesh.txt ----> Cursor to the last line
Operators of Vi session , Some commands are i Mentions above This is powerful Features of Vi - operators !! d -> Delete ; y -> Yank , c -> Change , ! - filter to act on text

No comments:

Post a Comment

Powered By Blogger