Vim

From Earlham CS Department
Jump to navigation Jump to search

Vim is a powerful text editing tool that is not initially installed on Linux machines. Standard vi editor is present, however, it is not as user friendly as vim is. Check if vim is installed, if it is not, install it.

By default the system uses its own .vimrc script for the settings of the editor.

If you want to create your own you can do so and change Vim settings as you wish. Personal .vimrc files should be created under the users home directory.

You can run --> $ vi ~/.vimrc to create your own file.

It often makes editing easier if syntax and highlighting are enabled.

After opening tyour .vimrc file:

    syntax on
    colorscheme <...>

Write and save and your changes should automatically going into effect. There are many other features of Vim that can be added to this document.