Syntax Hightlighting (Entry Nr. 353, by user 1 | edit) |
|
|
Enable Syntax hightlighting in vim:
:syntax on
If that doesnt work, you dont have enought vim. Get full vim:
apt-get install vim-full
By default vim only supports 16 colors. To enable 256 colors, use this:
:set t_Co=256
If you want to see, how the 256 colors look like, you can use this command in the bash:
perl -e 'print "\e[38;5;${_}m$_ " for (0 .. 255)'
You can change colors like this:
:hi Comment ctermfg=245
Find out, which group the word under they cursor belongs to:
:echo synIDattr(synID(line("."), col("."), 1), "name") |
|
|
Create a new entry at this position
|
|
|