I am a big fan of Nano but trying to learn the best tool for editing files in linux. I am trying to use VI but found that on the CentOS minimal install it does not have highlighting enabled and does not work with basic VI.
In order to get syntax highlighting to be enabled a couple of items need to be done. Goal here is to install VIM Enhanced Version.
Enough of that, lets get into it.
Install VIM Enhanced
yum -y install vim-enhanced
That is it, you can turn syntax highlighting on or off by:
:syantax on :syantax off
That’s pretty simple, but hey if you did not know, now you do.