Turn on syntax highlighting in vi/vim
March 1st, 2009 by vickyI recently got to administer a few linux boxes and wondered why vi does not show colors when I edit files. Some servers did it, some did not. It was differently set up by datacenter images and I really did not have time to investigate.
Now it just annoyed me because I could not find few syntax errors on one server and here is the solution.
Open up some file in vi or vim and hit ESC, then type “:syntax on” and the magic happens… let there be color
If you do like it without color, type “:syntax off”
Posted in General linux admin | No Comments »