Vi set color scheme , line numbers and syntax highlighting

Today I wanted to to set the Color Scheme in vi / vim in my Linux. The default configuration looks ugly:

vi_colorscheme_default

Default coloscheme for linux vi editor

I wanted to look like this:

vi_colorscheme_evening

Evening colorcheme for linux vi editor

So after some searching in the web I found an article in talkbinary and I did the following:
1. Create in your home directory a file called .exrc

touch ~/.exrc

2. Open this file and insert the following parameters:

set number
syntax on
colorscheme evening

3. Save the file and you are done! Now you have a nice colourfull VI editor

Advertisements

About cmanios

programming
This entry was posted in Linux, Mint, Raspbian, Ubuntu and tagged , , , , , . Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s