Enabling vi syntax colors

Connecting via SSH to your server
Browse to your user directory with the following command:
cd ~
Create a .vimrc file with the following command:
vi .vimrc
Click i for insert mode.
Type the following command below to enable syntax and give a specific colorscheme. This example uses the desert colorscheme:
syntax on

colorscheme desert
Hold Shift and hit : then type wq to save and quit the file.

Thank you:-D

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 )

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