Operating System - HP-UX
1850728 Members
3025 Online
104055 Solutions
New Discussion

Re: What is the difference between the insert and command modes of the vi editor?

 
Indrajit Bhagat
Regular Advisor

What is the difference between the insert and command modes of the vi editor?

What is the difference between the insert and command modes of the vi editor?
3 REPLIES 3
Mridul Shrivastava
Honored Contributor

Re: What is the difference between the insert and command modes of the vi editor?

When you are in insert mode (after pressing i).. you can enter any text in the file..however if you press Escap (ESC) twice then you could execute commands (like dd, x etc) with in the file and moreover can be used for searching any text within file so on...

You can refer the following doc for more details:
http://docs.hp.com/en/B2355-90164/ch04.html
Time has a wonderful way of weeding out the trivial
Sunny Jaisinghani
Trusted Contributor

Re: What is the difference between the insert and command modes of the vi editor?

hi,

in the insert mode u actually edit your file contents by typing in the text

in the command mode you can do some operations on the contents of the file such as searching a string, copying, pasting etc. u can also set various functions.
Peter Godron
Honored Contributor

Re: What is the difference between the insert and command modes of the vi editor?

Hi,
please see:
http://groups.google.com/group/comp.answers/msg/807f548026f00ae2?
"2.2 - What is the difference between Command mode & Insert mode?"