1.

Name different types of modes used in VI editor.

Answer»

VI editor (VISUAL Editor) is basically a default text editor that usually comes with most of the Linux OS. There are basically three types of MODES used in VI editor as given below: 

  • Command Mode/Regular Mode: It is the default mode for the vi editors. It is GENERALLY used to TYPE commands that usually perform particular or specific vi functions. To enter this mode from another mode (Insert mode), one must PRESS [esc]. In simple words, it lets you view the content.  
  • Insertion Mode/Edit Mode: This mode allows you to do text editing, or type text into a file. To enter this mode from another mode (command mode), one must press [esc]. In simple words, it lets you delete or insert text or content. 
  • Ex Mode/Replacement Mode: This mode is generally used to save the files and execution of the commands. It basically executes files with different parameters. To enter this mode, one must press [:]. In simple words, it lets you overwrite content or text. 


Discussion

No Comment Found