Vi editor is available on Linux distributions by default. Vim is the advanced and modified form of vi editor. So, everything available in vi is available in vim too, with additions features like: allowing to edit files using network protocols like SSH and HTTP, edit files inside a compressed archive (gzip, zip, tar, etc) and lot more .You can find more about about Vim editor in it’s official website. Vim is a versatile and powerful text editor. Since, vim is the advanced form of vi editor, I recommend everyone to use vim. To install Vim in Fedora type:

1)Starting the Vim editor:

First thing, after installing the vim editor, let’s learn how to open vim editor. Vim or vi editor is a terminal based editor. Go to terminal and type vim or vi to open the editor. If you want to open text or script file using vim type:

vim file_name

Add -r to recover the file that was being edited when system crashed as:

vim -r file_name

2) Two modes of vi editor:

Vi editor has two modes of operation: Insert mode and Command mode. To go to the insert mode press i. You can add text only in the insert mode. To exit from the insert mode hit Esc and you will be on the command mode. To save file, to exit and to enjoy various commands of vim you should be in the command mode.

3) Getting out of vi Editor:

As we already know, there are two types of mode in vim or vi editor: insert and command mode. To exit the vim editor you must be in the command mode. Simply type :q! to exit from the editor. If you want to save the file and exit from the editor type :wq. If you want to only save the file without exiting type :w.

4) Select the text:

To select the text, you need to be in the command mode. Press v(–Visual–) and move with the arrow keys: <up> <down> <left> <right> or with <Home>, <End>, <Page Up > <Page Down>.