VIM Syntax Highlighting özelliğinin etkinleştirilmesi

Şuraya atla: kullan, ara


By default, syntax highlighting is disabled in VIM. We want to enable it. For example:

# vi /etc/X11/xorg.conf

...and we see only gray. Colors are helpful, so:


We'll edit /etc/vmrc:

# vi /etc/vimrc

...and find the line

"syntax on

remove the comment (")

syntax on

Save and exit. We should now have color, try this again:

# vi /etc/X11/xorg.conf