Vi: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


=Syntax Highlight=
=Syntax Highlight=
==All Parsers==


To turn syntax highlight on or of interactively:
To turn syntax highlight on or of interactively:
Line 14: Line 16:


  syntax on|off
  syntax on|off
==Just the YAML Parser==
autocmd BufRead,BufNewFile {*.yaml} set filetype=yaml
autocmd FileType yaml setlocal syntax=off

Revision as of 18:19, 31 July 2017

Internal

Overview

Syntax Highlight

All Parsers

To turn syntax highlight on or of interactively:

:syntax on|off

To make the change permanent, edit ~/.vimrc and append:

syntax on|off

Just the YAML Parser

autocmd BufRead,BufNewFile {*.yaml} set filetype=yaml
autocmd FileType yaml setlocal syntax=off