Customize your vim: How to add line numbers, colors, and cursor to your vim

Vim can be very annoying to navigate and use when everything is one color, there are no line numbers to help debug, and you must only use arrow keys to navigate. Here is how to customize your vim for easier convenience when programming:

Go to terminal, type command:

vi ~./vimrc

The vimrc file contains optional runtime configuration settings to initialize Vim when it starts. You can customize Vim by putting suitable commands in your vimrc.

In this file, type the following

To turn on color schema: 

syntax on 

colorscheme delek

To add line number:

set number

To add cursor:

set mouse=a

 

1 comment on “Customize your vim: How to add line numbers, colors, and cursor to your vimAdd yours →

Leave a Reply

Your email address will not be published.