syntax enable VIM Command

How to use syntax enable Command in Linux VIM editor?

Explanation


syntax enable command is used to turn on color syntax highlighting in vim editor.

Usage:

:syntax enable

Example:

  • Open the file 'test.cpp'
    vim text.cpp

  • To turn on color syntax highlighting using the command
    Enter :syntax enable
    turn on color syntax highlighting

Ask Questions

Ask Question