Skip to main content

Posts

Showing posts with the label vi

VI editor

I consulted my team regarding the inclusion of vi editor in this blog. (this sounds cooler than I wasted 2 days dillydallying about this topic). I will just give enough introduction to the most popular text editor in Linux editor, enough for you to create/open a file, make changes and save the file.  To start vi editor, you give vi and filename. Modes  The editor has two modes insert mode and command mode. Insert mode is for you to type the content and command mode is for manipulation. i - key starts insert mode esc - key exits the insert mode You can use even the following keys for starting insert mode a - append at the end of word o - start a new line below the cursor O - start a new line above the cursor. While typing remember the fact that, cursor keys are not allowed in insert mode. Quitting the editor First come out of the insert mode by typing esc key and use any of the following combinations - which appear at the bottom of screen :w - s...