Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 545 Bytes

syntax-highlight.md

File metadata and controls

22 lines (16 loc) · 545 Bytes

Syntax Hightlight

  1. set syntax language for current file

    Show syntax/filetype used for current file:

    :set syntax
    :set filetype

    Set syntax/filetype for current file:

    # set one of the following parameter to highlight current file
    :set syntax=erlang
    :set filetype=erlang

References

  1. stackoverflow: How to force vim to syntax-highlight a file as html?