Better VIM syntax highlighting -


i come vim sublime text 2, , 1 thing miss syntax highlighting. see sample of php code in both st2 , vim... vim doesn't highlight anything:

enter image description here

enter image description here

i have syntax on, , syntax files lot of languages @ $home/.vim/syntax.

am missing something? it's there plugin enable better syntax highlighting? colorscheme i'm using (jellybeans)?

there 2 aspects syntax highlighting:

  1. what recognized different syntactical elements (called syntax groups in vim)
  2. which colors / highlighting attributes assigned each syntax group

the first can shown :syn list; lines starting php define php syntax. syntaxattr.vim - show syntax highlighting attributes of character under cursor plugin quite helpful show syntax group of current element. amount of differentiation depends on used syntax plugin, , there's little can it, that's not problem.

it's more you're dissatisfied due second. in terminal vim, there few colors (maybe 16) , attributes available. also, color scheme links multiple highlight groups common color (check :highlight).

you can try out different color schemes. if it's lack of available colors, use gvim or learn how configure 256 colors terminal. check chosen color scheme supports (some gui-only, support terminal poorly), , solutions csapprox more colors.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -