How to turn off the syntax colors in vim editor?

In this article we will tell you how to toggle the Syntax highlighting feature of Vim editor ON or OFF

In the vim text editor (a enhanced version of the vi editor), the syntax is highlighted automatically with various colours  as you type text in it. But this

The VIM Editor
The VIM Editor

highlighting and the colour scheme of vi editor does not catch the fancy of many. The easiest way to fix this is to turn off the syntax highlight feature of vim. We will now tell you how to turn off the highlighting in the Vim editor.

1. Enter the command line mode of vim editor by hitting escape key.

2. Now enter the following command to turn off syntax highlighting (carefully note the colon at the beginning)

:syntax off

3. If you wish to turn the colors and highlighting back on just type while in the command mode

:syntax on

4. Thus you can toggle between the syntax highlighting feature of vim editor.

However this is not a permanent solution. If you want to disable the syntax highlighting of vim permanentlyyou have to edit the vim config file:~/.vimrc located in your home directory. Open the~/.vimrc file in your favourite text editor and add the following line in order to disable the syntax highlighting feature of vim editor, permanently:

syntax off

Technorati Tags: vim, editor, disable, syntax, highlight

If this sounds like your situation, let's talk

No pitch decks. No sales process. Just a conversation about what you're dealing with and whether I can help.

Book a 30-minute call →