VIM Text Editor | Custom configuration

VIM Text Editor | Custom configuration

There is a steep learning curve for editing text files with VIM or VI, but once you use it for a while it becomes second nature. In this article I will go over customizing VIM with a vimrc configuration file.

In order to customize VIM, you need to put your configuration details in a file called .vimrc under your home directory.

Map the Escape key to the keys jk

Set syntax highlighting on

Turn on line numbers

Set tabs to 4 spaces and turn tabs into spaces

Turn on auto indenting your code

Helps VIM to act more normal

Case insensitive when searching

Sets the last 2 lines to give you more information

Shows your matches easier when searching

Format pasted text correctly

Comments are closed.