Senin, 16 Maret 2009

How to make vi colorful on xubuntu

Hi...
We started to study shell programming in school and we use VI to code some scripts. I noticed that all my colleagues using vi on ubuntu are very irritated and seem to envy their friends who use VI on Fedora 10 because it's very easy to use and colorful, it helps to detect syntax errors. Some of my friends started to regret installing Ubuntu instead of Fedora and even blamed me for recommending it. As an Ubuntu fan I looked for a solution for this tiny problem. I won't accept any lame remark about Ubuntu !! you need a colorful VI ? Here you are !


1- You have to install VIM which is "vi Improved" just tape this code in your console:
sudo apt-get install vim

2- After installing it you have to edit a file () and uncomment a parameter. To do so first you have to turn into root so type su and enter your root password:

su
then change this file mode for writing (so you can change its content)

chmod +w /etc/vim/vimrc

no open this file using vi if you want and uncomment syntax on. i.e erase the (") before syntax on in line 20.
vi /etc/vim/vimrc
After doing that save changes and exit using :wq
try writing something, save it and re-open it and you will find your beautiful colorful script. ENJOY !!
Related Posts Plugin for WordPress, Blogger...