VI/VIM not colorizing syntax like html or php

VI/VIM not colorizing syntax like html or php

I am brushing my old pc and installing ubuntu on it. As I was installing php-mysql and related packages I noticed that the vim/vi editor is not highlighting html or php syntaxes.
That would be it if you are running a bit older version of the ubuntu. Upgrading vim will take care of the problem:

sudo apt-get install vim-genome
sudo apt-get install vim

then go to the vimrc file and – it would be in /etc/vim/vimrc by default and uncomment the line syntax on

then you should get your vim rocking!

See how you would solve these known algorithm problems

Implement Queue Using two Stacks – JavaScript algorithm

find longest word in the sentence

Get maximum occurring character

Java solution for checking anagram strings – tell if phrases are anagrams

Check if there are three numbers a, b, c giving a total T from array A

Array reversal in Recurrsion

Changing decimal number to its binary equivalent

Flatten nested javascript array

binary tree problems with solution

Check if two strings are anagrams or not

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*