LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] Vim Syntax highlighting

[CLUG] Vim Syntax highlighting

Donncha O Caoimh donncha.ocaoimh at tradesignals.com
Fri Apr 14 09:44:50 IST 2000


Last night at the CLUG meeting Grant asked about syntax highlighting in
Vim:

Put the following in $HOME/.vimrc for coloured syntax highlighting:

#############################################
"if &term =~ "xterm"
 if has("terminfo")
  set t_Co=16
  set t_Sf=^[[3%p1%dm
  set t_Sb=^[[4%p1%dm
  set t_vb=
 else
  set t_Co=16
  set t_Sf=^[[3%dm
  set t_Sb=^[[4%dm
  set t_vb=
 endif
"endif

syntax on

"------ this clears out the old colors before we begin
highlight Constant    NONE
highlight Delimiter   NONE
highlight Directory   NONE
highlight Error       NONE
highlight ErrorMsg    NONE
highlight Identifier  NONE
highlight LineNr      NONE
highlight ModeMsg     NONE
highlight MoreMsg     NONE
highlight Normal      NONE
highlight NonText     NONE
highlight PreProc     NONE
highlight Question    NONE
highlight Search      NONE
highlight Special     NONE
highlight SpecialKey  NONE
highlight Statement   NONE
highlight StatusLine  NONE
highlight Title       NONE
highlight Todo        NONE
highlight Type        NONE
highlight Visual      NONE
highlight WarningMsg  NONE
"----- these are the new superior colors
highlight Comment     term=bold ctermfg=5 ctermbg=0 guifg=#FF005F
guibg=gray
highlight Constant    term=underline ctermfg=6 guifg=#FF2f8f
highlight Delimiter   term=bold cterm=bold ctermfg=1 gui=bold guifg=Red
highlight Directory   term=bold ctermfg=DarkBlue guifg=Blue
highlight Error       term=standout cterm=bold ctermbg=1 ctermfg=1
gui=bold guifg=red
highlight ErrorMsg    term=standout cterm=bold ctermfg=1 gui=bold
guifg=red
highlight Identifier  term=underline ctermfg=3 guifg=yellow3
highlight LineNr      term=underline cterm=bold ctermfg=3 guifg=Brown
highlight ModeMsg     term=bold cterm=bold ctermfg=3 ctermbg=1
guifg=yellow2 guibg=red
highlight MoreMsg     term=bold cterm=bold ctermfg=2 gui=bold
guifg=Green
highlight NonText     term=bold ctermfg=2 guifg=green3
highlight Normal      ctermfg=white ctermbg=black guifg=grey90
guibg=#000020
highlight PreProc     term=underline ctermfg=14 guifg=cyan
highlight Question    term=standout cterm=bold ctermfg=2 gui=bold
guifg=Green
highlight Search      term=reverse ctermbg=2 guibg=Yellow
highlight Special     term=bold ctermfg=5 guifg=SlateBlue
highlight SpecialKey  term=bold ctermfg=DarkBlue guifg=Blue
highlight Statement   term=bold ctermfg=2 gui=bold guifg=green3
highlight StatusLine  term=reverse cterm=bold ctermfg=3 ctermbg=4
guifg=wheat guibg=#2f4f4f
highlight StatusLineNC term=bold ctermfg=3 ctermbg=2 guifg=#00001f
guibg=#5f9f9f
highlight Title       term=bold cterm=bold ctermfg=4 gui=bold guifg=Blue
highlight Todo        term=bold ctermfg=red ctermbg=yellow guifg=red
guibg=yellow1 gui=bold
highlight Type        term=underline cterm=bold ctermfg=3 guifg=yellow3
gui=bold
highlight Visual      term=reverse cterm=bold ctermfg=6 ctermbg=5
guifg=yellow guibg=blue
highlight WarningMsg  term=standout cterm=bold ctermfg=1 ctermbg=4
guifg=Red

#############################################

Ripped straight out of my own .vimrc, None of the lines should wrap so
be careful when you're copying and pasting.. Can't remember where I got
the above in the first place though.

Donncha.




More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell