Discuss the two modes of the vi editor in solaris.

The two modes of operation of the vi editor are the entry and command mode. The drawback for first time vi users is that it does not distinguish between the two modes visually.


- Entry mode: This mode is used to enter text into a file. The vi is by default in the command mode. In order to enter text into a file the user has to type the vi insert command ‘i’. This changes the mode of vi from command to entry mode.


- Command mode: Every time the vi editor is opened it launches the command mode by default. In case the user is entering text and is one with it all he needs to do is press the esc button and the user is back at the command mode. The command mode allows the user to enter and execute a vast range of commands. Most of the commands consists of one or more letter with an optional number. Most commands does not require the return key to be pressed to execute. But the commands preceded by a colon require the return key to be pressed to execute.

No comments:

Post a Comment

The advantages of Outsourcing Web Development Services

In the present digital world, acquiring a solid web presence is essential for companies to flourish. A well designed site is much much more ...