Moved colors and syntax to Vundle.
This commit is contained in:
parent
a0c4260af6
commit
0fa49e4ff0
5 changed files with 10 additions and 719 deletions
BIN
vim/.vimrc.swp
BIN
vim/.vimrc.swp
Binary file not shown.
|
@ -1,367 +0,0 @@
|
|||
" Vim color file
|
||||
" Maintainer: Subramanyam <balu.vemu@gmail.com>
|
||||
" Version: 1.0
|
||||
"
|
||||
|
||||
set background=dark
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
let colors_name="bvemu"
|
||||
|
||||
" Base color
|
||||
" ----------
|
||||
hi Normal guifg=#949F92 guibg=#202020
|
||||
hi Normal ctermfg=253 ctermbg=235
|
||||
|
||||
" Comment Group
|
||||
" -------------
|
||||
" any comment
|
||||
hi Comment guifg=#887C6B gui=none
|
||||
hi Comment ctermfg=240 cterm=none
|
||||
|
||||
" Blue based
|
||||
" Constant Group
|
||||
" --------------
|
||||
" any constant
|
||||
hi Constant guifg=#8CD0D3 gui=none
|
||||
hi Constant ctermfg=116 cterm=none
|
||||
|
||||
" strings
|
||||
hi String guifg=#ADADAD gui=none
|
||||
hi String ctermfg=110 cterm=none
|
||||
|
||||
" character constant
|
||||
hi Character guifg=#8B0000 gui=none
|
||||
hi Character ctermfg=110 cterm=none
|
||||
|
||||
" numbers decimal/hex
|
||||
hi Number guifg=#A3ABB7 gui=none
|
||||
hi Number ctermfg=116 cterm=none
|
||||
|
||||
" true, false
|
||||
" could actually test this
|
||||
hi Boolean guifg=#FF85A0 gui=none
|
||||
hi Boolean ctermfg=116 cterm=none
|
||||
|
||||
" float
|
||||
hi Float guifg=#B94E48 gui=none
|
||||
hi Float ctermfg=116 cterm=none
|
||||
|
||||
|
||||
" Identifier Group
|
||||
" ----------------
|
||||
" any variable name
|
||||
hi Identifier guifg=#C4AD87 gui=none
|
||||
hi Identifier ctermfg=216 cterm=none
|
||||
|
||||
" function, method, class
|
||||
hi Function guifg=#C4AD87 gui=none
|
||||
hi Function ctermfg=216 cterm=none
|
||||
|
||||
" Statement Group
|
||||
" ---------------
|
||||
" any statement
|
||||
hi Statement guifg=#BDCB28 gui=none
|
||||
hi Statement ctermfg=150 cterm=none
|
||||
|
||||
" if, then, else
|
||||
hi Conditional guifg=#DA3287 gui=none
|
||||
hi Conditional ctermfg=150 cterm=none
|
||||
|
||||
" try, catch, throw, raise
|
||||
hi Exception guifg=#FF7900 gui=none
|
||||
hi Exception ctermfg=150 cterm=none
|
||||
|
||||
" for, while, do
|
||||
hi Repeat guifg=#1E90FF gui=none
|
||||
hi Repeat ctermfg=150 cterm=none
|
||||
|
||||
" case, default
|
||||
hi Label guifg=#CD00CC gui=none
|
||||
hi Label ctermfg=150 cterm=none
|
||||
|
||||
" sizeof, +, *
|
||||
hi Operator guifg=#1560BD gui=none
|
||||
hi Operator ctermfg=150 cterm=none
|
||||
|
||||
" any other keyword
|
||||
hi Keyword guifg=#C19A6B gui=none
|
||||
hi Keyword ctermfg=150 cterm=none
|
||||
|
||||
" Preprocessor Group
|
||||
" ------------------
|
||||
" generic preprocessor
|
||||
hi PreProc guifg=#D82626 gui=none
|
||||
hi PreProc ctermfg=223 cterm=none
|
||||
|
||||
" #include
|
||||
hi Include guifg=#36EF0A gui=none
|
||||
hi Include ctermfg=223 cterm=none
|
||||
|
||||
" #define
|
||||
hi Define guifg=#EF0A5C gui=none
|
||||
hi Define ctermfg=223 cterm=none
|
||||
|
||||
" same as define
|
||||
hi Macro guifg=#0AEFC3 gui=none
|
||||
hi Macro ctermfg=223 cterm=none
|
||||
|
||||
" #if, #else, #endif
|
||||
hi PreCondit guifg=#7D7D7D gui=none
|
||||
hi PreCondit ctermfg=223 cterm=none
|
||||
|
||||
" Type Group
|
||||
" ----------
|
||||
" int, long, char
|
||||
hi Type guifg=#60A0B7 gui=none
|
||||
hi Type ctermfg=115 cterm=none
|
||||
|
||||
" static, register, volative
|
||||
hi StorageClass guifg=#D1E231 gui=none
|
||||
hi StorageClass ctermfg=115 cterm=none
|
||||
|
||||
" struct, union, enum
|
||||
hi Structure guifg=#FFCC00 gui=none
|
||||
hi Structure ctermfg=115 cterm=none
|
||||
|
||||
" typedef
|
||||
hi Typedef guifg=#2CCDD3 gui=none
|
||||
hi Typedef ctermfg=115 cterm=none
|
||||
|
||||
" Special Group
|
||||
" -------------
|
||||
" any special symbol
|
||||
hi Special guifg=#FEF896 gui=none
|
||||
hi Special ctermfg=181 cterm=none
|
||||
|
||||
" special character in a constant
|
||||
hi SpecialChar guifg=#FBEC5D gui=none
|
||||
hi SpecialChar ctermfg=181 cterm=none
|
||||
|
||||
" things you can CTRL-]
|
||||
hi Tag guifg=#FBEC5D gui=none
|
||||
hi Tag ctermfg=181 cterm=none
|
||||
|
||||
" character that needs attention
|
||||
hi Delimiter guifg=#E4F59F gui=none
|
||||
hi Delimiter ctermfg=181 cterm=none
|
||||
|
||||
" special things inside a comment
|
||||
hi SpecialComment guifg=#F5DA9F gui=none
|
||||
hi SpecialComment ctermfg=181 cterm=none
|
||||
|
||||
" debugging statements
|
||||
hi Debug guifg=#cca3b3 guibg=NONE gui=none
|
||||
hi Debug ctermfg=181 ctermbg=NONE cterm=none
|
||||
|
||||
""TODO
|
||||
" Underlined Group
|
||||
" ----------------
|
||||
" text that stands out, html links
|
||||
hi Underlined guifg=#415FB8 gui=underline
|
||||
hi Underlined ctermfg=fg cterm=underline
|
||||
|
||||
" Ignore Group
|
||||
" ------------
|
||||
" left blank, hidden
|
||||
hi Ignore guifg=bg
|
||||
hi Ignore ctermfg=bg
|
||||
|
||||
" Error Group
|
||||
" -----------
|
||||
" any erroneous construct
|
||||
hi Error guifg=#E80000 guibg=#432323 gui=none
|
||||
hi Error ctermfg=167 ctermbg=52 cterm=none
|
||||
|
||||
" Todo Group
|
||||
" ----------
|
||||
" todo, fixme, note, xxx
|
||||
hi Todo guifg=#E80000 guibg=NONE gui=underline
|
||||
hi Todo ctermfg=228 ctermbg=NONE cterm=underline
|
||||
|
||||
" Spelling
|
||||
" --------
|
||||
" word not recognized
|
||||
hi SpellBad guisp=#B4FF96 gui=undercurl
|
||||
hi SpellBad ctermbg=9 cterm=undercurl
|
||||
|
||||
" word not capitalized
|
||||
hi SpellCap guisp=#C00F00 gui=undercurl
|
||||
hi SpellCap ctermbg=12 cterm=undercurl
|
||||
|
||||
" rare word
|
||||
hi SpellRare guisp=#FF4400 gui=undercurl
|
||||
hi SpellRare ctermbg=13 cterm=undercurl
|
||||
|
||||
" wrong spelling for selected region
|
||||
hi SpellLocal guisp=#E80000 gui=undercurl
|
||||
hi SpellLocal ctermbg=14 cterm=undercurl
|
||||
|
||||
" Cursor
|
||||
" ------
|
||||
" character under the cursor
|
||||
hi Cursor guifg=bg guibg=#a3e3ed
|
||||
hi Cursor ctermfg=bg ctermbg=153
|
||||
|
||||
" like cursor, but used when in IME mode
|
||||
hi CursorIM guifg=bg guibg=#96cdcd
|
||||
hi CursorIM ctermfg=bg ctermbg=116
|
||||
|
||||
" cursor column
|
||||
hi CursorColumn guifg=NONE guibg=#202438 gui=none
|
||||
hi CursorColumn ctermfg=NONE ctermbg=236 cterm=none
|
||||
|
||||
" cursor line/row
|
||||
hi CursorLine gui=NONE guibg=#202438 gui=none
|
||||
hi CursorLine cterm=NONE ctermbg=236 cterm=none
|
||||
|
||||
" Misc
|
||||
" ----
|
||||
" directory names and other special names in listings
|
||||
hi Directory guifg=#c0e0b0 gui=none
|
||||
hi Directory ctermfg=151 cterm=none
|
||||
|
||||
" error messages on the command line
|
||||
hi ErrorMsg guifg=#ee0000 guibg=NONE gui=none
|
||||
hi ErrorMsg ctermfg=196 ctermbg=NONE cterm=none
|
||||
|
||||
" column separating vertically split windows
|
||||
hi VertSplit guifg=#777777 guibg=#363946 gui=none
|
||||
hi VertSplit ctermfg=242 ctermbg=237 cterm=none
|
||||
|
||||
" columns where signs are displayed (used in IDEs)
|
||||
hi SignColumn guifg=#9fafaf guibg=#181818 gui=none
|
||||
hi SignColumn ctermfg=145 ctermbg=233 cterm=none
|
||||
|
||||
" line numbers
|
||||
hi LineNr guifg=#818698 guibg=#363946
|
||||
hi LineNr ctermfg=102 ctermbg=237
|
||||
|
||||
" match parenthesis, brackets
|
||||
hi MatchParen guifg=#BAFF00 guibg=NONE gui=bold
|
||||
hi MatchParen ctermfg=46 ctermbg=NONE cterm=bold
|
||||
|
||||
" the 'more' prompt when output takes more than one line
|
||||
hi MoreMsg guifg=#2e8b57 gui=none
|
||||
hi MoreMsg ctermfg=29 cterm=none
|
||||
|
||||
" text showing what mode you are in
|
||||
hi ModeMsg guifg=#76d5f8 guibg=NONE gui=none
|
||||
hi ModeMsg ctermfg=117 ctermbg=NONE cterm=none
|
||||
|
||||
" the '~' and '@' and showbreak, '>' double wide char doesn't fit on line
|
||||
hi NonText guifg=#FF7F00 gui=none
|
||||
hi NonText ctermfg=235 cterm=none
|
||||
|
||||
" the hit-enter prompt (show more output) and yes/no questions
|
||||
hi Question guifg=fg gui=none
|
||||
hi Question ctermfg=fg cterm=none
|
||||
|
||||
" meta and special keys used with map, unprintable characters
|
||||
hi SpecialKey guifg=#405060
|
||||
hi SpecialKey ctermfg=237
|
||||
|
||||
" titles for output from :set all, :autocmd, etc
|
||||
hi Title guifg=#FF9500 gui=none
|
||||
hi Title ctermfg=74 cterm=none
|
||||
|
||||
"hi Title guifg=#5ec8e5 gui=none
|
||||
" warning messages
|
||||
hi WarningMsg guifg=#e5786d gui=none
|
||||
hi WarningMsg ctermfg=173 cterm=none
|
||||
|
||||
" current match in the wildmenu completion
|
||||
hi WildMenu guifg=#cae682 guibg=#363946 gui=bold,underline
|
||||
hi WildMenu ctermfg=16 ctermbg=186 cterm=bold
|
||||
|
||||
" Diff
|
||||
" ----
|
||||
" added line
|
||||
hi DiffAdd guifg=#00CFFF guibg=#313c36 gui=none
|
||||
hi DiffAdd ctermfg=108 ctermbg=22 cterm=none
|
||||
|
||||
" changed line
|
||||
hi DiffChange guifg=NONE guibg=#FF9631 gui=none
|
||||
hi DiffChange ctermfg=fg ctermbg=52 cterm=none
|
||||
|
||||
" deleted line
|
||||
hi DiffDelete guifg=#FF0000 guibg=#E85500 gui=none
|
||||
hi DiffDelete ctermfg=59 ctermbg=58 cterm=none
|
||||
|
||||
" changed text within line
|
||||
hi DiffText guifg=#f05060 guibg=#4a343a gui=bold
|
||||
hi DiffText ctermfg=203 ctermbg=52 cterm=bold
|
||||
|
||||
" Folds
|
||||
" -----
|
||||
" line used for closed folds
|
||||
hi Folded guifg=#91d6f8 guibg=#363946 gui=none
|
||||
hi Folded ctermfg=117 ctermbg=238 cterm=none
|
||||
|
||||
" column on side used to indicated open and closed folds
|
||||
hi FoldColumn guifg=#91d6f8 guibg=#363946 gui=none
|
||||
hi FoldColumn ctermfg=117 ctermbg=238 cterm=none
|
||||
|
||||
" Search
|
||||
" ------
|
||||
" highlight incremental search text; also highlight text replaced with :s///c
|
||||
hi IncSearch guifg=#BD00FF gui=reverse
|
||||
hi IncSearch ctermfg=87 cterm=reverse
|
||||
|
||||
" hlsearch (last search pattern), also used for quickfix
|
||||
hi Search guibg=#ffaa33 gui=none
|
||||
hi Search ctermbg=214 cterm=none
|
||||
|
||||
" Popup Menu
|
||||
" ----------
|
||||
" normal item in popup
|
||||
hi Pmenu guifg=#e0e0e0 guibg=#303840 gui=none
|
||||
hi Pmenu ctermfg=253 ctermbg=233 cterm=none
|
||||
|
||||
" selected item in popup
|
||||
hi PmenuSel guifg=#cae682 guibg=#505860 gui=none
|
||||
hi PmenuSel ctermfg=186 ctermbg=237 cterm=none
|
||||
|
||||
" scrollbar in popup
|
||||
hi PMenuSbar guibg=#505860 gui=none
|
||||
hi PMenuSbar ctermbg=59 cterm=none
|
||||
|
||||
" thumb of the scrollbar in the popup
|
||||
hi PMenuThumb guibg=#808890 gui=none
|
||||
hi PMenuThumb ctermbg=102 cterm=none
|
||||
|
||||
" Status Line
|
||||
" -----------
|
||||
" status line for current window
|
||||
hi StatusLine guifg=#e0e0e0 guibg=#363946 gui=bold
|
||||
hi StatusLine ctermfg=254 ctermbg=237 cterm=bold
|
||||
|
||||
" status line for non-current windows
|
||||
hi StatusLineNC guifg=#767986 guibg=#363946 gui=none
|
||||
hi StatusLineNC ctermfg=244 ctermbg=237 cterm=none
|
||||
|
||||
" Tab Lines
|
||||
" ---------
|
||||
" tab pages line, not active tab page label
|
||||
hi TabLine guifg=#462244 guibg=#363946 gui=none
|
||||
hi TabLine ctermfg=244 ctermbg=236 cterm=none
|
||||
|
||||
" tab pages line, where there are no labels
|
||||
hi TabLineFill guifg=#A2ADA3 guibg=#363946 gui=none
|
||||
hi TabLineFill ctermfg=187 ctermbg=236 cterm=none
|
||||
|
||||
" tab pages line, active tab page label
|
||||
hi TabLineSel guifg=#002DC2 guibg=#414658 gui=bold
|
||||
hi TabLineSel ctermfg=254 ctermbg=236 cterm=bold
|
||||
|
||||
" Visual
|
||||
" ------
|
||||
" visual mode selection
|
||||
hi Visual guifg=NONE guibg=#CFE4FF
|
||||
hi Visual ctermfg=NONE ctermbg=24
|
||||
|
||||
" visual mode selection when vim is not owning the selection (x11 only)
|
||||
hi VisualNOS guifg=fg gui=underline
|
||||
hi VisualNOS ctermfg=fg cterm=underline
|
|
@ -1,42 +0,0 @@
|
|||
"----------------------------------------------------------"
|
||||
" Vim meta color file "
|
||||
" Maintainer : W. H. Jou "
|
||||
" Email : whjou@singnet.com.sg "
|
||||
" Most Recent Update : 2003-09-15 "
|
||||
" Version : 1.3 "
|
||||
"----------------------------------------------------------"
|
||||
" Define function once only
|
||||
if !exists("*s:LoadRandomColorScheme")
|
||||
function s:LoadRandomColorScheme()
|
||||
let s:self = globpath(&runtimepath, 'colors/random.vim')
|
||||
let s:color_file_list = globpath(&runtimepath, 'colors/*.vim' )
|
||||
let s:self = substitute(s:self , '\' , '/', 'g')
|
||||
let s:color_file_list = substitute(s:color_file_list, '\' , '/', 'g')
|
||||
let s:color_file_list = substitute(s:color_file_list, s:self . "\n", '' , 'g')
|
||||
let s:color_file_list = substitute(s:color_file_list, "\n" , ',', 'g')
|
||||
|
||||
if strlen(s:color_file_list)
|
||||
if s:color_file_list =~ ','
|
||||
let s:rnd = matchstr(localtime(), '..$') + 0
|
||||
let s:loop = 0
|
||||
|
||||
while s:loop < s:rnd
|
||||
let s:color_file_list = substitute(s:color_file_list, '^\([^,]\+\),\(.*\)$', '\2,\1', '')
|
||||
let s:loop = s:loop + 1
|
||||
endwhile
|
||||
|
||||
let s:color_file = matchstr(s:color_file_list, '^[^,]\+')
|
||||
execute "source" s:color_file
|
||||
unlet! s:color_file
|
||||
|
||||
unlet! s:loop
|
||||
unlet! s:rnd
|
||||
endif
|
||||
endif
|
||||
|
||||
unlet! s:color_file_list
|
||||
unlet! s:self_file
|
||||
endfunction
|
||||
endif
|
||||
"----------------------------------------------------------"
|
||||
call s:LoadRandomColorScheme()
|
|
@ -1,305 +0,0 @@
|
|||
" Vim syntax file
|
||||
" Language: LESS Cascading Style Sheets
|
||||
" Maintainer: Leaf Corcoran <leafot@gmail.com>
|
||||
" Modifier: Bryan J Swift <bryan@bryanjswift.com>
|
||||
" URL: http://leafo.net/lessphp/vim/less.vim
|
||||
" URL: http://gist.github.com/161047
|
||||
" Last Change: 2009 August 4
|
||||
" LESS by Leaf Corcoran
|
||||
" CSS2 by Nikolai Weibull
|
||||
" Full CSS2, HTML4 support by Yeti
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if !exists("main_syntax")
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
let main_syntax = 'less'
|
||||
endif
|
||||
|
||||
syn case ignore
|
||||
|
||||
|
||||
|
||||
syn keyword cssTagName abbr acronym address applet area a b base
|
||||
syn keyword cssTagName basefont bdo big blockquote body br button
|
||||
syn keyword cssTagName caption center cite code col colgroup dd del
|
||||
syn keyword cssTagName dfn dir div dl dt em fieldset font form frame
|
||||
syn keyword cssTagName frameset h1 h2 h3 h4 h5 h6 head hr html img i
|
||||
syn keyword cssTagName iframe img input ins isindex kbd label legend li
|
||||
syn keyword cssTagName link map menu meta noframes noscript ol optgroup
|
||||
syn keyword cssTagName option p param pre q s samp script select small
|
||||
syn keyword cssTagName span strike strong style sub sup tbody td
|
||||
syn keyword cssTagName textarea tfoot th thead title tr tt ul u var
|
||||
syn match cssTagName "\<table\>"
|
||||
syn match cssTagName "\*"
|
||||
|
||||
syn match cssTagName "@page\>" nextgroup=cssDefinition
|
||||
|
||||
syn match cssSelectorOp "[+>.]"
|
||||
syn match cssSelectorOp2 "[~|]\?=" contained
|
||||
syn region cssAttributeSelector matchgroup=cssSelectorOp start="\[" end="]" transparent contains=cssUnicodeEscape,cssSelectorOp2,cssStringQ,cssStringQQ
|
||||
|
||||
try
|
||||
syn match cssIdentifier "#[A-Za-zÀ-ÿ_@][A-Za-zÀ-ÿ0-9_@-]*"
|
||||
catch /^.*/
|
||||
syn match cssIdentifier "#[A-Za-z_@][A-Za-z0-9_@-]*"
|
||||
endtry
|
||||
|
||||
syn match cssMedia "@media\>" nextgroup=cssMediaType skipwhite skipnl
|
||||
syn keyword cssMediaType contained screen print aural braile embosed handheld projection ty tv all nextgroup=cssMediaComma,cssMediaBlock skipwhite skipnl
|
||||
syn match cssMediaComma "," nextgroup=cssMediaType skipwhite skipnl
|
||||
syn region cssMediaBlock transparent matchgroup=cssBraces start='{' end='}' contains=cssTagName,cssError,cssComment,cssDefinition,cssURL,cssUnicodeEscape,cssIdentifier
|
||||
|
||||
syn match cssValueInteger "[-+]\=\d\+"
|
||||
syn match cssValueNumber "[-+]\=\d\+\(\.\d*\)\="
|
||||
syn match cssValueLength "[-+]\=\d\+\(\.\d*\)\=\(%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\)"
|
||||
|
||||
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=\(deg\|grad\|rad\)"
|
||||
syn match cssValueTime contained "+\=\d\+\(\.\d*\)\=\(ms\|s\)"
|
||||
syn match cssValueFrequency contained "+\=\d\+\(\.\d*\)\=\(Hz\|kHz\)"
|
||||
|
||||
syn match cssFontDescriptor "@font-face\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
syn region cssFontDescriptorBlock contained transparent matchgroup=cssBraces start="{" end="}" contains=cssComment,cssError,cssUnicodeEscape,cssFontProp,cssFontAttr,cssCommonAttr,cssStringQ,cssStringQQ,cssFontDescriptorProp,cssValue.*,cssFontDescriptorFunction,cssUnicodeRange,cssFontDescriptorAttr
|
||||
syn match cssFontDescriptorProp contained "\<\(unicode-range\|unit-per-em\|panose-1\|cap-height\|x-height\|definition-src\)\>"
|
||||
syn keyword cssFontDescriptorProp contained src stemv stemh slope ascent descent widths bbox baseline centerline mathline topline
|
||||
syn keyword cssFontDescriptorAttr contained all
|
||||
syn region cssFontDescriptorFunction contained matchgroup=cssFunctionName start="\<\(uri\|url\|local\|format\)\s*(" end=")" contains=cssStringQ,cssStringQQ oneline keepend
|
||||
syn match cssUnicodeRange contained "U+[0-9A-Fa-f?]\+"
|
||||
syn match cssUnicodeRange contained "U+\x\+-\x\+"
|
||||
|
||||
syn keyword cssColor contained aqua black blue fuchsia gray green lime maroon navy olive purple red silver teal yellow
|
||||
" FIXME: These are actually case-insentivie too, but (a) specs recommend using
|
||||
" mixed-case (b) it's hard to highlight the word `Background' correctly in
|
||||
" all situations
|
||||
syn case match
|
||||
syn keyword cssColor contained ActiveBorder ActiveCaption AppWorkspace ButtonFace ButtonHighlight ButtonShadow ButtonText CaptionText GrayText Highlight HighlightText InactiveBorder InactiveCaption InactiveCaptionText InfoBackground InfoText Menu MenuText Scrollbar ThreeDDarkShadow ThreeDFace ThreeDHighlight ThreeDLightShadow ThreeDShadow Window WindowFrame WindowText Background
|
||||
syn case ignore
|
||||
syn match cssColor contained "\<transparent\>"
|
||||
syn match cssColor contained "\<white\>"
|
||||
syn match cssColor contained "#[0-9A-Fa-f]\{3\}\>"
|
||||
syn match cssColor contained "#[0-9A-Fa-f]\{6\}\>"
|
||||
"syn match cssColor contained "\<rgb\s*(\s*\d\+\(\.\d*\)\=%\=\s*,\s*\d\+\(\.\d*\)\=%\=\s*,\s*\d\+\(\.\d*\)\=%\=\s*)"
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<url\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgb\|clip\|attr\|counter\|rect\)\s*(" end=")" oneline keepend
|
||||
|
||||
syn match cssImportant contained "!\s*important\>"
|
||||
|
||||
syn keyword cssCommonAttr contained auto none inherit
|
||||
syn keyword cssCommonAttr contained top bottom
|
||||
syn keyword cssCommonAttr contained medium normal
|
||||
|
||||
syn match cssFontProp contained "\<font\>\(-\(family\|style\|variant\|weight\|size\(-adjust\)\=\|stretch\)\>\)\="
|
||||
syn match cssFontAttr contained "\<\(sans-\)\=\<serif\>"
|
||||
syn match cssFontAttr contained "\<small\>\(-\(caps\|caption\)\>\)\="
|
||||
syn match cssFontAttr contained "\<x\{1,2\}-\(large\|small\)\>"
|
||||
syn match cssFontAttr contained "\<message-box\>"
|
||||
syn match cssFontAttr contained "\<status-bar\>"
|
||||
syn match cssFontAttr contained "\<\(\(ultra\|extra\|semi\|status-bar\)-\)\=\(condensed\|expanded\)\>"
|
||||
syn keyword cssFontAttr contained cursive fantasy monospace italic oblique
|
||||
syn keyword cssFontAttr contained bold bolder lighter larger smaller
|
||||
syn keyword cssFontAttr contained icon menu
|
||||
syn match cssFontAttr contained "\<caption\>"
|
||||
syn keyword cssFontAttr contained large smaller larger
|
||||
syn keyword cssFontAttr contained narrower wider
|
||||
|
||||
syn keyword cssColorProp contained color
|
||||
syn match cssColorProp contained "\<background\(-\(color\|image\|attachment\|position\)\)\="
|
||||
syn keyword cssColorAttr contained center scroll fixed
|
||||
syn match cssColorAttr contained "\<repeat\(-[xy]\)\=\>"
|
||||
syn match cssColorAttr contained "\<no-repeat\>"
|
||||
|
||||
syn match cssTextProp "\<\(\(word\|letter\)-spacing\|text\(-\(decoration\|transform\|align\|index\|shadow\)\)\=\|vertical-align\|unicode-bidi\|line-height\)\>"
|
||||
syn match cssTextAttr contained "\<line-through\>"
|
||||
syn match cssTextAttr contained "\<text-indent\>"
|
||||
syn match cssTextAttr contained "\<\(text-\)\=\(top\|bottom\)\>"
|
||||
syn keyword cssTextAttr contained underline overline blink sub super middle
|
||||
syn keyword cssTextAttr contained capitalize uppercase lowercase center justify baseline sub super
|
||||
|
||||
syn match cssBoxProp contained "\<\(margin\|padding\|border\)\(-\(top\|right\|bottom\|left\)\)\=\>"
|
||||
syn match cssBoxProp contained "\<border-\(\(\(top\|right\|bottom\|left\)-\)\=\(width\|color\|style\)\)\=\>"
|
||||
syn match cssBoxProp contained "\<\(width\|z-index\)\>"
|
||||
syn match cssBoxProp contained "\<\(min\|max\)-\(width\|height\)\>"
|
||||
syn keyword cssBoxProp contained width height float clear overflow clip visibility
|
||||
syn keyword cssBoxAttr contained thin thick both
|
||||
syn keyword cssBoxAttr contained dotted dashed solid double groove ridge inset outset
|
||||
syn keyword cssBoxAttr contained hidden visible scroll collapse
|
||||
|
||||
syn keyword cssGeneratedContentProp contained content quotes
|
||||
syn match cssGeneratedContentProp contained "\<counter-\(reset\|increment\)\>"
|
||||
syn match cssGeneratedContentProp contained "\<list-style\(-\(type\|position\|image\)\)\=\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(no-\)\=\(open\|close\)-quote\>"
|
||||
syn match cssAuralAttr contained "\<lower\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(lower\|upper\)-\(roman\|alpha\|greek\|latin\)\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(hiragana\|katakana\)\(-iroha\)\=\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(decimal\(-leading-zero\)\=\|cjk-ideographic\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained disc circle square hebrew armenian georgian
|
||||
syn keyword cssGeneratedContentAttr contained inside outside
|
||||
|
||||
syn match cssPagingProp contained "\<page\(-break-\(before\|after\|inside\)\)\=\>"
|
||||
syn keyword cssPagingProp contained size marks inside orphans widows
|
||||
syn keyword cssPagingAttr contained landscape portrait crop cross always avoid
|
||||
|
||||
syn keyword cssUIProp contained cursor
|
||||
syn match cssUIProp contained "\<outline\(-\(width\|style\|color\)\)\=\>"
|
||||
syn match cssUIAttr contained "\<[ns]\=[ew]\=-resize\>"
|
||||
syn keyword cssUIAttr contained default crosshair pointer move wait help
|
||||
syn keyword cssUIAttr contained thin thick
|
||||
syn keyword cssUIAttr contained dotted dashed solid double groove ridge inset outset
|
||||
syn keyword cssUIAttr contained invert
|
||||
|
||||
syn match cssRenderAttr contained "\<marker\>"
|
||||
syn match cssRenderProp contained "\<\(display\|marker-offset\|unicode-bidi\|white-space\|list-item\|run-in\|inline-table\)\>"
|
||||
syn keyword cssRenderProp contained position top bottom direction
|
||||
syn match cssRenderProp contained "\<\(left\|right\)\>"
|
||||
syn keyword cssRenderAttr contained block inline compact
|
||||
syn match cssRenderAttr contained "\<table\(-\(row-gorup\|\(header\|footer\)-group\|row\|column\(-group\)\=\|cell\|caption\)\)\=\>"
|
||||
syn keyword cssRenderAttr contained static relative absolute fixed
|
||||
syn keyword cssRenderAttr contained ltr rtl embed bidi-override pre nowrap
|
||||
syn match cssRenderAttr contained "\<bidi-override\>"
|
||||
|
||||
syn match cssAuralProp contained "\<\(pause\|cue\)\(-\(before\|after\)\)\=\>"
|
||||
syn match cssAuralProp contained "\<\(play-during\|speech-rate\|voice-family\|pitch\(-range\)\=\|speak\(-\(punctuation\|numerals\)\)\=\)\>"
|
||||
syn keyword cssAuralProp contained volume during azimuth elevation stress richness
|
||||
syn match cssAuralAttr contained "\<\(x-\)\=\(soft\|loud\)\>"
|
||||
syn keyword cssAuralAttr contained silent
|
||||
syn match cssAuralAttr contained "\<spell-out\>"
|
||||
syn keyword cssAuralAttr contained non mix
|
||||
syn match cssAuralAttr contained "\<\(left\|right\)-side\>"
|
||||
syn match cssAuralAttr contained "\<\(far\|center\)-\(left\|center\|right\)\>"
|
||||
syn keyword cssAuralAttr contained leftwards rightwards behind
|
||||
syn keyword cssAuralAttr contained below level above higher
|
||||
syn match cssAuralAttr contained "\<\(x-\)\=\(slow\|fast\)\>"
|
||||
syn keyword cssAuralAttr contained faster slower
|
||||
syn keyword cssAuralAttr contained male female child code digits continuous
|
||||
|
||||
syn match cssTableProp contained "\<\(caption-side\|table-layout\|border-collapse\|border-spacing\|empty-cells\|speak-header\)\>"
|
||||
syn keyword cssTableAttr contained fixed collapse separate show hide once always
|
||||
|
||||
|
||||
|
||||
syn match lessComment "//.*$" contains=@Spell
|
||||
syn match lessVariable "@[A-Za-z_-][A-Za-z0-9_-]*" contained
|
||||
syn region lessVariableDefinition start="^@" end=";" contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssDefinition,cssClassName,cssTagName,cssIdentifier,lessComment,lessVariable,lessFunction
|
||||
|
||||
" captures both the definition and the call
|
||||
syn region lessFunction matchgroup=lessFuncDef start="@[A-Za-z_-][A-Za-z0-9_-]*(" end=")" contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssDefinition,cssClassName,cssTagName,cssIdentifier,lessComment,lessVariable,lessFunction
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
" FIXME: This allows cssMediaBlock before the semicolon, which is wrong.
|
||||
syn region cssInclude start="@import" end=";" contains=cssComment,cssURL,cssUnicodeEscape,cssMediaType
|
||||
syn match cssBraces contained "[{}]"
|
||||
syn match cssError contained "{@<>"
|
||||
syn region cssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssDefinition,cssClassName,cssTagName,cssIdentifier,lessComment,lessVariable,lessFunction
|
||||
" syn match cssBraceError "}"
|
||||
|
||||
syn match cssPseudoClass ":\S*" contains=cssPseudoClassId,cssUnicodeEscape
|
||||
syn keyword cssPseudoClassId contained link visited active hover focus before after left right
|
||||
syn match cssPseudoClassId contained "\<first\(-\(line\|letter\|child\)\)\=\>"
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":lang(" end=")" oneline
|
||||
|
||||
syn region cssComment start="/\*" end="\*/" contains=@Spell
|
||||
|
||||
syn match cssUnicodeEscape "\\\x\{1,6}\s\?"
|
||||
syn match cssSpecialCharQQ +\\"+ contained
|
||||
syn match cssSpecialCharQ +\\'+ contained
|
||||
syn region cssStringQQ start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=cssUnicodeEscape,cssSpecialCharQQ
|
||||
syn region cssStringQ start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=cssUnicodeEscape,cssSpecialCharQ
|
||||
syn match cssClassName "\.[A-Za-z][A-Za-z0-9_-]\+"
|
||||
|
||||
|
||||
|
||||
|
||||
if main_syntax == "css"
|
||||
syn sync minlines=10
|
||||
endif
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_less_syn_inits")
|
||||
if version < 508
|
||||
let did_less_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink lessComment Comment
|
||||
HiLink lessVariable Special
|
||||
HiLink lessFuncDef Function
|
||||
HiLink cssComment Comment
|
||||
HiLink cssTagName Statement
|
||||
HiLink cssSelectorOp Special
|
||||
HiLink cssSelectorOp2 Special
|
||||
HiLink cssFontProp StorageClass
|
||||
HiLink cssColorProp storageClass
|
||||
HiLink cssTextProp StorageClass
|
||||
HiLink cssBoxProp StorageClass
|
||||
HiLink cssRenderProp StorageClass
|
||||
HiLink cssAuralProp StorageClass
|
||||
HiLink cssRenderProp StorageClass
|
||||
HiLink cssGeneratedContentProp StorageClass
|
||||
HiLink cssPagingProp StorageClass
|
||||
HiLink cssTableProp StorageClass
|
||||
HiLink cssUIProp StorageClass
|
||||
HiLink cssFontAttr Type
|
||||
HiLink cssColorAttr Type
|
||||
HiLink cssTextAttr Type
|
||||
HiLink cssBoxAttr Type
|
||||
HiLink cssRenderAttr Type
|
||||
HiLink cssAuralAttr Type
|
||||
HiLink cssGeneratedContentAttr Type
|
||||
HiLink cssPagingAttr Type
|
||||
HiLink cssTableAttr Type
|
||||
HiLink cssUIAttr Type
|
||||
HiLink cssCommonAttr Type
|
||||
HiLink cssPseudoClassId PreProc
|
||||
HiLink cssPseudoClassLang Constant
|
||||
HiLink cssValueLength Number
|
||||
HiLink cssValueInteger Number
|
||||
HiLink cssValueNumber Number
|
||||
HiLink cssValueAngle Number
|
||||
HiLink cssValueTime Number
|
||||
HiLink cssValueFrequency Number
|
||||
HiLink cssFunction Constant
|
||||
HiLink cssURL String
|
||||
HiLink cssFunctionName Function
|
||||
HiLink cssColor Constant
|
||||
HiLink cssIdentifier Function
|
||||
HiLink cssInclude Include
|
||||
HiLink cssImportant Special
|
||||
HiLink cssBraces SpecialChar
|
||||
HiLink cssBraceError Error
|
||||
HiLink cssError Error
|
||||
HiLink cssInclude Include
|
||||
HiLink cssUnicodeEscape Special
|
||||
HiLink cssStringQQ String
|
||||
HiLink cssStringQ String
|
||||
HiLink cssMedia Special
|
||||
HiLink cssMediaType Special
|
||||
HiLink cssMediaComma Normal
|
||||
HiLink cssFontDescriptor Special
|
||||
HiLink cssFontDescriptorFunction Constant
|
||||
HiLink cssFontDescriptorProp StorageClass
|
||||
HiLink cssFontDescriptorAttr Type
|
||||
HiLink cssUnicodeRange Constant
|
||||
HiLink cssClassName Function
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "less"
|
||||
|
||||
if main_syntax == 'less'
|
||||
unlet main_syntax
|
||||
endif
|
||||
|
||||
|
||||
" vim: ts=8
|
||||
|
15
vim/vimrc
15
vim/vimrc
|
@ -7,14 +7,19 @@ call vundle#rc()
|
|||
" Required, let Vundle manage Vundle
|
||||
Bundle 'gmarik/vundle'
|
||||
|
||||
Bundle 'ervandew/supertab'
|
||||
Bundle 'msanders/snipmate.vim'
|
||||
Bundle 'scrooloose/nerdtree'
|
||||
Bundle 'msanders/snipmate.vim'
|
||||
Bundle 'ervandew/supertab'
|
||||
Bundle 'scrooloose/syntastic'
|
||||
Bundle 'tpope/vim-fugitive'
|
||||
Bundle 'vim-scripts/Command-T'
|
||||
"Bundle 'vim-scripts/Flex-Development-Support'
|
||||
Bundle 'vim-scripts/SearchComplete'
|
||||
Bundle 'KohPoll/vim-less'
|
||||
|
||||
Bundle 'bvemu.vim'
|
||||
Bundle 'random.vim'
|
||||
|
||||
Bundle 'Command-T'
|
||||
"Bundle 'Flex-Development-Support'
|
||||
Bundle 'SearchComplete'
|
||||
|
||||
filetype plugin indent on " Also required by Vundle
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue