Difference between revisions of "Vim Syntax Highlighting"

Jump to: navigation, search
(imported from my home dir)
(No difference)

Latest revision as of 02:22, 13 April 2010

Syntax Highlighting[edit]

What it is[edit]

  • indicating syntax of language via coloring, font altering, etc

How to activate in Vim[edit]

  • Just Works option
  • Doesn't work option
    • verify Vim compiled with +syntax
      • :version
      • vim --version or gvim --version
      • if not, check if package is vim-minimal; get vim-enhanced
    • file type not correctly detected
      • Check: :set filetype
      • Change: :se ft=c

What syntaxes supported?[edit]

  • Look in Vim syntax directory (eg, /usr/share/vim/vim72/syntax/)

Other info[edit]

shows what matches
shows color scheme
:set background 
changes contrast based on terminal, alters color scheme slightly
creates printout
if :ha doesn't work, launch in web browser, then print