I'm Rituraj, a Developer @Nagarro. founder of Maddyzone. JavaScript, Angular, Node.

Enable and disable syntax highlighting in vim

In vim by default syntax highlight are not enable so to enable the syntax highlight in vim we need to set it manually also we can disable.Here i am describe how to enable and disable syntax highlighting in vim.

This command will not run in insert and visual mode.It will work in command mode. for command mode press ESC key then write below

Enable syntax highlighting in vim

:syntax on

Disable syntax highlighting in vim

:syntax off

If you want by default vim load this above setting then write in your .vimrc file

syntax on

like as we mention on above.


Rituraj Ratan

I'm Rituraj, a Developer @Nagarro. Founder of Maddyzone .