highlighting, linux, nano, programming, terminal code syntax highlighting in vi (linux editor)

--

I recently wrote about how to enable syntax highlighting in the linux editor NANO.

Below i will explain how to enable such features in VI, as they are built in it is much easier.

Move to your home directory and create/open the settings file:

cd
vi .vimrc

Enable syntax highlighting:

syntax on

Save using:

:wq!

You will now have syntax highlighting enabled when using vi/vim as your editor of choice.