Open terminal and run command VI/VIM.
Please try this out and its to learn and do cool stuff with it. It is very powerful editor when it comes to do things in bulk. You know, what i mean from bulk, really bulk.
A bit of description, which is as follows:
The vi editor (short for visual editor) is a screen editor which is available on almost all Unix systems.
Starting VI/VIM
To start using vi, at the Linux/Unix terminal/prompt type VI/VIM followed by a file name. If you want to edit an existing file, type its name; if you want to create a new file, type in the name you want to give to the file.
Usage:
vi filename
OR
vim filename
Then hit Enter. You will see a screen similar to the one below which shows blank lines with tildes and the name and status of the file.
~
~
"myfile" [New file]
VI's Modes and Moods
VI has two modes:
1. Command Mode
2. Insert Mode.
It is essential that you know which mode you are in at any given point in time. When you are in command mode, letters of the keyboard will be interpreted as commands. When you are in insert mode the same letters of the keyboard will type or edit text. VI always starts out in command mode. When you wish to move between the two modes, keep these things in mind. You can type i to enter the insert mode. If you wish to leave insert mode and return to the command mode, hit the ESC key. If you're not sure where you are, hit ESC a couple of times and that should put you back in command mode.
Please try this out and its to learn and do cool stuff with it. It is very powerful editor when it comes to do things in bulk. You know, what i mean from bulk, really bulk.
A bit of description, which is as follows:
The vi editor (short for visual editor) is a screen editor which is available on almost all Unix systems.
Starting VI/VIM
To start using vi, at the Linux/Unix terminal/prompt type VI/VIM followed by a file name. If you want to edit an existing file, type its name; if you want to create a new file, type in the name you want to give to the file.
Usage:
vi filename
OR
vim filename
Then hit Enter. You will see a screen similar to the one below which shows blank lines with tildes and the name and status of the file.
~
~
"myfile" [New file]
VI's Modes and Moods
VI has two modes:
1. Command Mode
2. Insert Mode.
It is essential that you know which mode you are in at any given point in time. When you are in command mode, letters of the keyboard will be interpreted as commands. When you are in insert mode the same letters of the keyboard will type or edit text. VI always starts out in command mode. When you wish to move between the two modes, keep these things in mind. You can type i to enter the insert mode. If you wish to leave insert mode and return to the command mode, hit the ESC key. If you're not sure where you are, hit ESC a couple of times and that should put you back in command mode.
Comments
Post a Comment