The filename actually begins with a decimal (it's a “hidden” file), and editing it is as simple as issuing this command:
If you’re not familiar with the vim “vimrc” file, it is the vim configuration file, and it can be found in your home directory on a Unix or Linux system. If you want syntax highlighting enabled by default when you open your vim editor, just add this command to your vimrc configuration file: When you turn vim syntax highlighting off, the same file in your vim editor will now look like this:Įnable vim syntax highlighting by default (vimrc) With syntax highlighting turned on, a vim editor session can give you some nice syntax highlighting, as shown in this image:Ĭonversely, if you want to turn syntax highlighting off in your current vim editor session, just issue this command: To enable syntax highlighting in your current vim editor session just issue this command in vim’s last-line mode: Turning on syntax highlighting in your vim editor is usually pretty simple you just need to issue a syntax on command, either in your current editor session, or in your vimrc configuration file. Vim syntax faq: How do I turn on (enable) or turn off (disable) vim syntax highlighting?