Enable syntax highlighting and colors in vim

You're editing a C source file and while you're still in vim editor session and want to enable syntax highligting feature, just give the following command, pressing ESC before:

:syntax on

You can make this behaviour as default for your own future user session entering following lines in your .vimrc file:

syntax on

You can even make this behaviour as a system wide default with entering above lines in /etc/vim/vimrc configuration file.







Hayabusa by Selcuk Miynat over 3 years ago Reply this comment
If you use Debian, default installed vim package is vim-tiny which does not support syntax highlighting. For syntax highlighting, vim-runtime package should be installed.
You must be login first or sign-up for an account to post comments.

Maybe you should look at these also: