Recent Changes - Search:

Softwares

.

UsingTheViEditor

Main.UsingTheViEditor History

Hide minor edits - Show changes to output

April 24, 2009, at 06:32 PM by 118.95.5.140 -
Added lines 1-5:
(:Google1:)
(:Googlemm:)
----
Changed lines 75-78 from:
For e.g. :!pwd
to:
For e.g. :!pwd

(:Google1:)
(:Googlemm:)
Changed lines 13-14 from:
%blue%esc :w "filename"
to:
esc :w "filename"
Changed lines 1-4 from:
%blue%Using the vi editor

To insert new text
to:
%red%Using the vi editor

%blue%To insert new text
Changed lines 7-8 from:
To save file
to:
%blue%To save file
Changed lines 11-16 from:
To save file with file name (save as)

esc :w "filename"

To quit the vi editor
to:
%blue%To save file with file name (save as)

%blue%esc :w "filename"

%blue%To quit the vi editor
Changed lines 19-20 from:
To quit without saving
to:
%blue%To quit without saving
Changed lines 23-24 from:
To save and quit vi editor
to:
%blue%To save and quit vi editor
Changed lines 27-28 from:
To search for specified word in forward direction
to:
%blue%To search for specified word in forward direction
Changed lines 31-34 from:
To continue with search n

To search for specified word in backward direction
to:
%blue%To continue with search n

%blue%To search for specified word in backward direction
Changed lines 37-38 from:
To copy the line where cursor is located
to:
%blue%To copy the line where cursor is located
Changed lines 41-42 from:
To paste the text just deleted or copied at the cursor
to:
%blue%To paste the text just deleted or copied at the cursor
Changed lines 45-46 from:
To delete entire line where cursor is located
to:
%blue%To delete entire line where cursor is located
Changed lines 49-50 from:
To delete word from cursor position
to:
%blue%To delete word from cursor position
Changed lines 53-54 from:
To Find all occurrence of given word and Replace then globally without confirmation
to:
%blue%To Find all occurrence of given word and Replace then globally without confirmation
Changed lines 62-63 from:
To Find all occurrence of given word and Replace then globally with confirmation
to:
%blue%To Find all occurrence of given word and Replace then globally with confirmation
Changed lines 66-67 from:
To run shell command like ls, cp or date etc within vi
to:
%blue%To run shell command like ls, cp or date etc within vi
Added line 4:
Added line 6:
Added line 8:
Added line 10:
Added line 12:
Added line 16:
Added line 18:
Added line 20:
Added line 22:
Added line 24:
Added line 28:
Added line 30:
Added line 34:
Added line 38:
Added line 40:
Added line 42:
Added line 44:
Added line 46:
Added line 50:
Added line 52:
Added line 54:
Added line 58:
Added line 63:
Added line 65:
Added line 67:
Added lines 1-45:
%blue%Using the vi editor

To insert new text
esc i ( You have to press 'escape' key then 'i')
To save file
esc : w (Press 'escape' key then 'colon' and finally 'w')
To save file with file name (save as)
esc :w "filename"

To quit the vi editor
esc :q
To quit without saving
esc :q!
To save and quit vi editor
esc :wq

To search for specified word in forward direction
esc /word (Press 'escape' key, type /word-to-find,)
To continue with search n

To search for specified word in backward direction
esc ?word (Press 'escape' key, type word-to-find)

To copy the line where cursor is located
esc yy
To paste the text just deleted or copied at the cursor
esc p
To delete entire line where cursor is located
esc dd

To delete word from cursor position
esc dw
To Find all occurrence of given word and Replace then globally without confirmation
esc :$s/word-to-find/word-to-replace/g

For. e.g. :$s/itmission/itmission.org/g
Here word "itmission" is replace with "itmission.org"


To Find all occurrence of given word and Replace then globally with confirmation
esc :$s/word-to-find/word-to-replace/cg
To run shell command like ls, cp or date etc within vi
esc :!shell-command

For e.g. :!pwd
Edit - History - Print - Recent Changes - Search
Page last modified on April 24, 2009, at 06:32 PM