About: Define your own colors   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Instead of copying someone's gaudy color scheme, fine tune it your own settings. Put this function in, say, ~/showcolors.vim, then edit the rgb colors in hex below, and press to update and see the results. Below are (3 dark, 3 pastel) * (red,blue,green,yellow) colour definitions to get you started. Needs Vim 7 with Python to generate syntax on the fly.

AttributesValues
rdfs:label
  • Define your own colors
rdfs:comment
  • Instead of copying someone's gaudy color scheme, fine tune it your own settings. Put this function in, say, ~/showcolors.vim, then edit the rgb colors in hex below, and press to update and see the results. Below are (3 dark, 3 pastel) * (red,blue,green,yellow) colour definitions to get you started. Needs Vim 7 with Python to generate syntax on the fly.
Version
  • n/a
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1304(xsd:integer)
Category
  • Syntax
Author
  • Mosh
Complexity
  • basic
Created
  • 2006-08-12(xsd:date)
ID
  • 1305(xsd:integer)
NEXT
  • 1308(xsd:integer)
Rating
  • 38(xsd:integer)
abstract
  • Instead of copying someone's gaudy color scheme, fine tune it your own settings. Put this function in, say, ~/showcolors.vim, then edit the rgb colors in hex below, and press to update and see the results. Below are (3 dark, 3 pastel) * (red,blue,green,yellow) colour definitions to get you started. Needs Vim 7 with Python to generate syntax on the fly. function! Mosh_Show_Colors() syn off py << EOF import vim,re for line in vim.current.buffer[:]: result = re.match('^\s*:?hi\w*\s*(\w+)',line) if result: kw = result.group(1) syn = ("syn keyword %s %s") % (kw, kw) #print syn vim.command( syn ) EOF map :call Mosh_Show_Colors():exe getline('.') hi Red1d guifg=#8f0000 hi Red2d guifg=#702020 hi Red3d guifg=#500707 hi Red1p guifg=#fa4740 hi Red2p guifg=#f08787 hi Red3p guifg=#f0a787 hi Blue1d guifg=#1010f0 hi Blue2d guifg=#101090 hi Blue3d guifg=#103050 hi Blue1p guifg=#8080f0 hi Blue2p guifg=#a080f0 hi Blue3p guifg=#70a0f0 hi Green1d guifg=#01a001 hi Green2d guifg=#017001 hi Green3d guifg=#015001 hi Green1p guifg=#a0f0a0 hi Green2p guifg=#c0ffa0 hi Green3p guifg=#c0f010 hi Yellow1p guifg=#f0f000 hi Yellow2p guifg=#fafa0a hi Yellow3p guifg=#fdda0a hi Yellow1d guifg=#adaa0a hi Yellow2d guifg=#8a8a01 hi Yellow3d guifg=#4a4a01 endfunc call Mosh_Show_Colors()
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software