The editor I use


The editor I use for bash scripting is the VI editor. In fact it is VIM, or Vi IMproved. The other options include gedit, nano and emacs. Any text editor will do the job.

VIM screenshot

You can invoke VI by typing vi in the shell.


or you can use it followed by the name of the file you’re going to edit.

   vi hello

VI’s steep learning curve usually deters many new comers. You have to remember various key commands to perform even simple tasks. However, once you get in touch with the basics, it’s quite easy to catch up and you will soon find how efficient working with VI is.
VIM is an improved version of VI which is far more intuitive than the former, for example you can use arrow keys to move around the text. It doesn’t make sense to work with VI when VIM is available. Once you install VIM (sudo apt-get install vim in debian-based distros), just invoking vi instead of vim will take you to VIM.

Two good tutorials for learning VI can be found here and here.


No Responses Yet to “The editor I use”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: