how to set vi with color syntax and line numbers

Coding with vi is always fun.

To turn on the color syntax and show line numbers in vi, just do these simple steps:

  1. Open .vimrc file
  2. Append “syntax on” to the file for activating color syntax
  3. Append “set number” to show the line number

Now vi will look as interesting as any coding editor 🙂

Advertisements