Marlo Simon Noval avatar Marlo Simon Noval committed 1bed332

Updated zencoding, main css snippet. Removed colorschemes.

Comments (0)

Files changed (11)

colors/busybee.vim

 
 " Vim >= 7.0 specific colors
 if version >= 700
-  hi CursorLine    guibg=Grey20 ctermbg=234
+  hi CursorLine    guibg=Grey15 ctermbg=234
   hi CursorColumn  guibg=#202020 ctermbg=234
   hi MatchParen    guifg=#d0ffc0 guibg=#202020 gui=bold ctermfg=157 ctermbg=237 cterm=bold
   hi Pmenu 		   guifg=#ffffff guibg=#202020 ctermfg=255 ctermbg=238

colors/darktango.vim

-" Vim color file
-" Name: DarkTango
-" Maintainer: Panos Laganakos <panos.laganakos@gmail.com>
-" Version: 0.3
-
-
-set background=dark
-if version > 580
-	" no guarantees for version 5.8 and below, but this makes it stop
-	" complaining
-	hi clear
-	if exists("syntax_on")
-		syntax reset
-	endif
-endif
-
-let g:colors_name="darktango"
-
-hi Normal	guibg=#2e3436 guifg=#d3d7cf
-
-" {{{ syntax
-hi Comment	guifg=#555753
-hi Title	guifg=#eeeeec
-hi Underlined	guifg=#20b0eF gui=none
-hi Statement	guifg=#888a85
-hi Type		guifg=#ce5c00
-hi PreProc	guifg=#eeeeec 
-hi Constant	guifg=#babdb6
-hi Identifier	guifg=#ce5c00 
-hi Special	guifg=#eeeeec
-hi Ignore	guifg=#f57900
-hi Todo		guibg=#ce5c00 guifg=#eeeeec
-"hi Error
-"}}}
-
-" {{{ groups
-hi Cursor	guibg=#babdb6 guifg=#2e3436
-"hi CursorIM
-hi Directory	guifg=#bbd0df
-"hi DiffAdd
-"hi DiffChange
-"hi DiffDelete
-"hi DiffText
-"hi ErrorMsg
-hi VertSplit	guibg=#555753 guifg=#2e3436 gui=none
-hi Folded	guibg=#555753 guifg=#eeeeec
-hi FoldColumn	guibg=#2e3436 guifg=#555753
-hi LineNr	guibg=#2e3436 guifg=#555753
-hi MatchParen	guibg=#babdb6 guifg=#2e3436
-hi ModeMsg	guifg=#ce5c00
-hi MoreMsg	guifg=#ce5c00
-hi NonText	guibg=#2e3436 guifg=#555753
-hi Question	guifg=#aabbcc
-hi Search	guibg=#fce94f guifg=#c4a000
-hi IncSearch	guibg=#c4a000 guifg=#fce94f
-hi SpecialKey	guifg=#ce5c00
-hi StatusLine	guibg=#555753 guifg=#eeeeec gui=none
-hi StatusLineNC	guibg=#555753 guifg=#272334 gui=none
-hi Visual	guibg=#fcaf3e guifg=#ce5c00 
-"hi VisualNOS
-hi WarningMsg	guifg=salmon
-"hi WildMenu
-"hi Menu
-"hi Scrollbar  guibg=grey30 guifg=tan
-"hi Tooltip
-hi Pmenu	guibg=#babdb6 guifg=#555753
-hi PmenuSel	guibg=#eeeeec guifg=#2e3436
-hi CursorLine	guibg=#212628
-" }}}
-
-"  {{{ terminal
-" TODO
-" }}}
-
-"vim: sw=4

colors/desert256.vim

-" Vim color file
-" Maintainer: Henry So, Jr. <henryso@panix.com>
-
-" These are the colors of the "desert" theme by Hans Fugal with a few small
-" modifications (namely that I lowered the intensity of the normal white and
-" made the normal and nontext backgrounds black), modified to work with 88-
-" and 256-color xterms.
-"
-" The original "desert" theme is available as part of the vim distribution or
-" at http://hans.fugal.net/vim/colors/.
-"
-" The real feature of this color scheme, with a wink to the "inkpot" theme, is
-" the programmatic approximation of the gui colors to the palettes of 88- and
-" 256- color xterms.  The functions that do this (folded away, for
-" readability) are calibrated to the colors used for Thomas E. Dickey's xterm
-" (version 200), which is available at http://dickey.his.com/xterm/xterm.html.
-"
-" I struggled with trying to parse the rgb.txt file to avoid the necessity of
-" converting color names to #rrggbb form, but decided it was just not worth
-" the effort.  Maybe someone seeing this may decide otherwise...
-
-set background=dark
-if version > 580
-    " no guarantees for version 5.8 and below, but this makes it stop
-    " complaining
-    hi clear
-    if exists("syntax_on")
-        syntax reset
-    endif
-endif
-let g:colors_name="desert256"
-
-if has("gui_running") || &t_Co == 88 || &t_Co == 256
-    " functions {{{
-    " returns an approximate grey index for the given grey level
-    fun <SID>grey_number(x)
-        if &t_Co == 88
-            if a:x < 23
-                return 0
-            elseif a:x < 69
-                return 1
-            elseif a:x < 103
-                return 2
-            elseif a:x < 127
-                return 3
-            elseif a:x < 150
-                return 4
-            elseif a:x < 173
-                return 5
-            elseif a:x < 196
-                return 6
-            elseif a:x < 219
-                return 7
-            elseif a:x < 243
-                return 8
-            else
-                return 9
-            endif
-        else
-            if a:x < 14
-                return 0
-            else
-                let l:n = (a:x - 8) / 10
-                let l:m = (a:x - 8) % 10
-                if l:m < 5
-                    return l:n
-                else
-                    return l:n + 1
-                endif
-            endif
-        endif
-    endfun
-
-    " returns the actual grey level represented by the grey index
-    fun <SID>grey_level(n)
-        if &t_Co == 88
-            if a:n == 0
-                return 0
-            elseif a:n == 1
-                return 46
-            elseif a:n == 2
-                return 92
-            elseif a:n == 3
-                return 115
-            elseif a:n == 4
-                return 139
-            elseif a:n == 5
-                return 162
-            elseif a:n == 6
-                return 185
-            elseif a:n == 7
-                return 208
-            elseif a:n == 8
-                return 231
-            else
-                return 255
-            endif
-        else
-            if a:n == 0
-                return 0
-            else
-                return 8 + (a:n * 10)
-            endif
-        endif
-    endfun
-
-    " returns the palette index for the given grey index
-    fun <SID>grey_color(n)
-        if &t_Co == 88
-            if a:n == 0
-                return 16
-            elseif a:n == 9
-                return 79
-            else
-                return 79 + a:n
-            endif
-        else
-            if a:n == 0
-                return 16
-            elseif a:n == 25
-                return 231
-            else
-                return 231 + a:n
-            endif
-        endif
-    endfun
-
-    " returns an approximate color index for the given color level
-    fun <SID>rgb_number(x)
-        if &t_Co == 88
-            if a:x < 69
-                return 0
-            elseif a:x < 172
-                return 1
-            elseif a:x < 230
-                return 2
-            else
-                return 3
-            endif
-        else
-            if a:x < 75
-                return 0
-            else
-                let l:n = (a:x - 55) / 40
-                let l:m = (a:x - 55) % 40
-                if l:m < 20
-                    return l:n
-                else
-                    return l:n + 1
-                endif
-            endif
-        endif
-    endfun
-
-    " returns the actual color level for the given color index
-    fun <SID>rgb_level(n)
-        if &t_Co == 88
-            if a:n == 0
-                return 0
-            elseif a:n == 1
-                return 139
-            elseif a:n == 2
-                return 205
-            else
-                return 255
-            endif
-        else
-            if a:n == 0
-                return 0
-            else
-                return 55 + (a:n * 40)
-            endif
-        endif
-    endfun
-
-    " returns the palette index for the given R/G/B color indices
-    fun <SID>rgb_color(x, y, z)
-        if &t_Co == 88
-            return 16 + (a:x * 16) + (a:y * 4) + a:z
-        else
-            return 16 + (a:x * 36) + (a:y * 6) + a:z
-        endif
-    endfun
-
-    " returns the palette index to approximate the given R/G/B color levels
-    fun <SID>color(r, g, b)
-        " get the closest grey
-        let l:gx = <SID>grey_number(a:r)
-        let l:gy = <SID>grey_number(a:g)
-        let l:gz = <SID>grey_number(a:b)
-
-        " get the closest color
-        let l:x = <SID>rgb_number(a:r)
-        let l:y = <SID>rgb_number(a:g)
-        let l:z = <SID>rgb_number(a:b)
-
-        if l:gx == l:gy && l:gy == l:gz
-            " there are two possibilities
-            let l:dgr = <SID>grey_level(l:gx) - a:r
-            let l:dgg = <SID>grey_level(l:gy) - a:g
-            let l:dgb = <SID>grey_level(l:gz) - a:b
-            let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
-            let l:dr = <SID>rgb_level(l:gx) - a:r
-            let l:dg = <SID>rgb_level(l:gy) - a:g
-            let l:db = <SID>rgb_level(l:gz) - a:b
-            let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
-            if l:dgrey < l:drgb
-                " use the grey
-                return <SID>grey_color(l:gx)
-            else
-                " use the color
-                return <SID>rgb_color(l:x, l:y, l:z)
-            endif
-        else
-            " only one possibility
-            return <SID>rgb_color(l:x, l:y, l:z)
-        endif
-    endfun
-
-    " returns the palette index to approximate the 'rrggbb' hex string
-    fun <SID>rgb(rgb)
-        let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
-        let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
-        let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
-
-        return <SID>color(l:r, l:g, l:b)
-    endfun
-
-    " sets the highlighting for the given group
-    fun <SID>X(group, fg, bg, attr)
-        if a:fg != ""
-            exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . <SID>rgb(a:fg)
-        endif
-        if a:bg != ""
-            exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . <SID>rgb(a:bg)
-        endif
-        if a:attr != ""
-            exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr
-        endif
-    endfun
-    " }}}
-
-    call <SID>X("Normal", "cccccc", "000000", "")
-
-    " highlight groups
-    call <SID>X("Cursor", "708090", "f0e68c", "")
-    "CursorIM
-    "Directory
-    "DiffAdd
-    "DiffChange
-    "DiffDelete
-    "DiffText
-    "ErrorMsg
-    call <SID>X("VertSplit", "c2bfa5", "7f7f7f", "reverse")
-    call <SID>X("Folded", "ffd700", "4d4d4d", "")
-    call <SID>X("FoldColumn", "d2b48c", "4d4d4d", "")
-    call <SID>X("IncSearch", "708090", "f0e68c", "")
-    "LineNr
-    call <SID>X("ModeMsg", "daa520", "", "")
-    call <SID>X("MoreMsg", "2e8b57", "", "")
-    call <SID>X("NonText", "addbe7", "000000", "bold")
-    call <SID>X("Question", "00ff7f", "", "")
-    call <SID>X("Search", "f5deb3", "cd853f", "")
-    call <SID>X("SpecialKey", "9acd32", "", "")
-    call <SID>X("StatusLine", "c2bfa5", "000000", "reverse")
-    call <SID>X("StatusLineNC", "c2bfa5", "7f7f7f", "reverse")
-    call <SID>X("Title", "cd5c5c", "", "")
-    call <SID>X("Visual", "6b8e23", "f0e68c", "reverse")
-    "VisualNOS
-    call <SID>X("WarningMsg", "fa8072", "", "")
-    "WildMenu
-    "Menu
-    "Scrollbar
-    "Tooltip
-
-    " syntax highlighting groups
-    call <SID>X("Comment", "87ceeb", "", "")
-    call <SID>X("Constant", "ffa0a0", "", "")
-    call <SID>X("Identifier", "98fb98", "", "none")
-    call <SID>X("Statement", "f0e68c", "", "bold")
-    call <SID>X("PreProc", "cd5c5c", "", "")
-    call <SID>X("Type", "bdb76b", "", "bold")
-    call <SID>X("Special", "ffdead", "", "")
-    "Underlined
-    call <SID>X("Ignore", "666666", "", "")
-    "Error
-    call <SID>X("Todo", "ff4500", "eeee00", "")
-
-    " delete functions {{{
-    delf <SID>X
-    delf <SID>rgb
-    delf <SID>color
-    delf <SID>rgb_color
-    delf <SID>rgb_level
-    delf <SID>rgb_number
-    delf <SID>grey_color
-    delf <SID>grey_level
-    delf <SID>grey_number
-    " }}}
-else
-    " color terminal definitions
-    hi SpecialKey    ctermfg=darkgreen
-    hi NonText       cterm=bold ctermfg=darkblue
-    hi Directory     ctermfg=darkcyan
-    hi ErrorMsg      cterm=bold ctermfg=7 ctermbg=1
-    hi IncSearch     cterm=NONE ctermfg=yellow ctermbg=green
-    hi Search        cterm=NONE ctermfg=grey ctermbg=blue
-    hi MoreMsg       ctermfg=darkgreen
-    hi ModeMsg       cterm=NONE ctermfg=brown
-    hi LineNr        ctermfg=3
-    hi Question      ctermfg=green
-    hi StatusLine    cterm=bold,reverse
-    hi StatusLineNC  cterm=reverse
-    hi VertSplit     cterm=reverse
-    hi Title         ctermfg=5
-    hi Visual        cterm=reverse
-    hi VisualNOS     cterm=bold,underline
-    hi WarningMsg    ctermfg=1
-    hi WildMenu      ctermfg=0 ctermbg=3
-    hi Folded        ctermfg=darkgrey ctermbg=NONE
-    hi FoldColumn    ctermfg=darkgrey ctermbg=NONE
-    hi DiffAdd       ctermbg=4
-    hi DiffChange    ctermbg=5
-    hi DiffDelete    cterm=bold ctermfg=4 ctermbg=6
-    hi DiffText      cterm=bold ctermbg=1
-    hi Comment       ctermfg=darkcyan
-    hi Constant      ctermfg=brown
-    hi Special       ctermfg=5
-    hi Identifier    ctermfg=6
-    hi Statement     ctermfg=3
-    hi PreProc       ctermfg=5
-    hi Type          ctermfg=2
-    hi Underlined    cterm=underline ctermfg=5
-    hi Ignore        ctermfg=darkgrey
-    hi Error         cterm=bold ctermfg=7 ctermbg=1
-endif
-
-" vim: set fdl=0 fdm=marker:

colors/ir_black.vim

-" ir_black color scheme
-" More at: http://blog.infinitered.com/entries/show/8
-
-
-" ********************************************************************************
-" Standard colors used in all ir_black themes:
-" Note, x:x:x are RGB values
-"
-"  normal: #f6f3e8
-" 
-"  string: #A8FF60  168:255:96                   
-"    string inner (punc, code, etc): #00A0A0  0:160:160
-"  number: #FF73FD  255:115:253                 
-"  comments: #7C7C7C  124:124:124
-"  keywords: #96CBFE  150:203:254             
-"  operators: white
-"  class: #FFFFB6  255:255:182
-"  method declaration name: #FFD2A7  255:210:167
-"  regular expression: #E9C062  233:192:98
-"    regexp alternate: #FF8000  255:128:0
-"    regexp alternate 2: #B18A3D  177:138:61
-"  variable: #C6C5FE  198:197:254
-"  
-" Misc colors:
-"  red color (used for whatever): #FF6C60   255:108:96 
-"     light red: #FFB6B0   255:182:176
-"
-"  brown: #E18964  good for special
-"
-"  lightpurpleish: #FFCCFF
-" 
-" Interface colors:
-"  background color: black
-"  cursor (where underscore is used): #FFA560  255:165:96
-"  cursor (where block is used): white
-"  visual selection: #1D1E2C  
-"  current line: #151515  21:21:21
-"  search selection: #07281C  7:40:28
-"  line number: #3D3D3D  61:61:61
-
-
-" ********************************************************************************
-" The following are the preferred 16 colors for your terminal
-"           Colors      Bright Colors
-" Black     #4E4E4E     #7C7C7C
-" Red       #FF6C60     #FFB6B0
-" Green     #A8FF60     #CEFFAB
-" Yellow    #FFFFB6     #FFFFCB
-" Blue      #96CBFE     #FFFFCB
-" Magenta   #FF73FD     #FF9CFE
-" Cyan      #C6C5FE     #DFDFFE
-" White     #EEEEEE     #FFFFFF
-
-
-" ********************************************************************************
-set background=dark
-hi clear
-
-if exists("syntax_on")
-  syntax reset
-endif
-
-let colors_name = "ir_black"
-
-
-"hi Example         guifg=NONE        guibg=NONE        gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
-
-" General colors
-hi Normal           guifg=#f6f3e8     guibg=black       gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
-hi NonText          guifg=#070707     guibg=black       gui=NONE      ctermfg=black       ctermbg=NONE        cterm=NONE
-
-hi Cursor           guifg=black       guibg=white       gui=NONE      ctermfg=black       ctermbg=white       cterm=reverse
-hi LineNr           guifg=#3D3D3D     guibg=black       gui=NONE      ctermfg=darkgray    ctermbg=NONE        cterm=NONE
-
-hi VertSplit        guifg=#202020     guibg=#202020     gui=NONE      ctermfg=darkgray    ctermbg=darkgray    cterm=NONE
-hi StatusLine       guifg=#CCCCCC     guibg=#202020     gui=italic    ctermfg=white       ctermbg=darkgray    cterm=NONE
-hi StatusLineNC     guifg=black       guibg=#202020     gui=NONE      ctermfg=blue        ctermbg=darkgray    cterm=NONE  
-
-hi Folded           guifg=#a0a8b0     guibg=#384048     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
-hi Title            guifg=#f6f3e8     guibg=NONE        gui=bold      ctermfg=NONE        ctermbg=NONE        cterm=NONE
-hi Visual           guifg=NONE        guibg=#262D51     gui=NONE      ctermfg=NONE        ctermbg=darkgray    cterm=NONE
-
-hi SpecialKey       guifg=#808080     guibg=#343434     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
-
-hi WildMenu         guifg=green       guibg=yellow      gui=NONE      ctermfg=black       ctermbg=yellow      cterm=NONE
-hi PmenuSbar        guifg=black       guibg=white       gui=NONE      ctermfg=black       ctermbg=white       cterm=NONE
-"hi Ignore           guifg=gray        guibg=black       gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
-
-hi Error            guifg=NONE        guibg=NONE        gui=undercurl ctermfg=white       ctermbg=red         cterm=NONE     guisp=#FF6C60 " undercurl color
-hi ErrorMsg         guifg=white       guibg=#FF6C60     gui=BOLD      ctermfg=white       ctermbg=red         cterm=NONE
-hi WarningMsg       guifg=white       guibg=#FF6C60     gui=BOLD      ctermfg=white       ctermbg=red         cterm=NONE
-
-" Message displayed in lower left, such as --INSERT--
-hi ModeMsg          guifg=black       guibg=#C6C5FE     gui=BOLD      ctermfg=black       ctermbg=cyan        cterm=BOLD
-
-if version >= 700 " Vim 7.x specific colors
-  hi CursorLine     guifg=NONE        guibg=#121212     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=BOLD
-  hi CursorColumn   guifg=NONE        guibg=#121212     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=BOLD
-  hi MatchParen     guifg=#f6f3e8     guibg=#857b6f     gui=BOLD      ctermfg=white       ctermbg=darkgray    cterm=NONE
-  hi Pmenu          guifg=#f6f3e8     guibg=#444444     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
-  hi PmenuSel       guifg=#000000     guibg=#cae682     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
-  hi Search         guifg=NONE        guibg=NONE        gui=underline ctermfg=NONE        ctermbg=NONE        cterm=underline
-endif
-
-" Syntax highlighting
-hi Comment          guifg=#7C7C7C     guibg=NONE        gui=NONE      ctermfg=darkgray    ctermbg=NONE        cterm=NONE
-hi String           guifg=#A8FF60     guibg=NONE        gui=NONE      ctermfg=green       ctermbg=NONE        cterm=NONE
-hi Number           guifg=#FF73FD     guibg=NONE        gui=NONE      ctermfg=magenta     ctermbg=NONE        cterm=NONE
-
-hi Keyword          guifg=#96CBFE     guibg=NONE        gui=NONE      ctermfg=blue        ctermbg=NONE        cterm=NONE
-hi PreProc          guifg=#96CBFE     guibg=NONE        gui=NONE      ctermfg=blue        ctermbg=NONE        cterm=NONE
-hi Conditional      guifg=#6699CC     guibg=NONE        gui=NONE      ctermfg=blue        ctermbg=NONE        cterm=NONE  " if else end
-
-hi Todo             guifg=#8f8f8f     guibg=NONE        gui=NONE      ctermfg=red         ctermbg=NONE        cterm=NONE
-hi Constant         guifg=#99CC99     guibg=NONE        gui=NONE      ctermfg=cyan        ctermbg=NONE        cterm=NONE
-
-hi Identifier       guifg=#C6C5FE     guibg=NONE        gui=NONE      ctermfg=cyan        ctermbg=NONE        cterm=NONE
-hi Function         guifg=#FFD2A7     guibg=NONE        gui=NONE      ctermfg=brown       ctermbg=NONE        cterm=NONE
-hi Type             guifg=#FFFFB6     guibg=NONE        gui=NONE      ctermfg=yellow      ctermbg=NONE        cterm=NONE
-hi Statement        guifg=#6699CC     guibg=NONE        gui=NONE      ctermfg=lightblue   ctermbg=NONE        cterm=NONE
-
-hi Special          guifg=#E18964     guibg=NONE        gui=NONE      ctermfg=white       ctermbg=NONE        cterm=NONE
-hi Delimiter        guifg=#00A0A0     guibg=NONE        gui=NONE      ctermfg=cyan        ctermbg=NONE        cterm=NONE
-hi Operator         guifg=white       guibg=NONE        gui=NONE      ctermfg=white       ctermbg=NONE        cterm=NONE
-
-hi link Character       Constant
-hi link Boolean         Constant
-hi link Float           Number
-hi link Repeat          Statement
-hi link Label           Statement
-hi link Exception       Statement
-hi link Include         PreProc
-hi link Define          PreProc
-hi link Macro           PreProc
-hi link PreCondit       PreProc
-hi link StorageClass    Type
-hi link Structure       Type
-hi link Typedef         Type
-hi link Tag             Special
-hi link SpecialChar     Special
-hi link SpecialComment  Special
-hi link Debug           Special
-
-
-" Special for Ruby
-hi rubyRegexp                  guifg=#B18A3D      guibg=NONE      gui=NONE      ctermfg=brown          ctermbg=NONE      cterm=NONE
-hi rubyRegexpDelimiter         guifg=#FF8000      guibg=NONE      gui=NONE      ctermfg=brown          ctermbg=NONE      cterm=NONE
-hi rubyEscape                  guifg=white        guibg=NONE      gui=NONE      ctermfg=cyan           ctermbg=NONE      cterm=NONE
-hi rubyInterpolationDelimiter  guifg=#00A0A0      guibg=NONE      gui=NONE      ctermfg=blue           ctermbg=NONE      cterm=NONE
-hi rubyControl                 guifg=#6699CC      guibg=NONE      gui=NONE      ctermfg=blue           ctermbg=NONE      cterm=NONE  "and break, etc
-"hi rubyGlobalVariable          guifg=#FFCCFF      guibg=NONE      gui=NONE      ctermfg=lightblue      ctermbg=NONE      cterm=NONE  "yield
-hi rubyStringDelimiter         guifg=#336633      guibg=NONE      gui=NONE      ctermfg=lightgreen     ctermbg=NONE      cterm=NONE
-"rubyInclude
-"rubySharpBang
-"rubyAccess
-"rubyPredefinedVariable
-"rubyBoolean
-"rubyClassVariable
-"rubyBeginEnd
-"rubyRepeatModifier
-"hi link rubyArrayDelimiter    Special  " [ , , ]
-"rubyCurlyBlock  { , , }
-
-hi link rubyClass             Keyword 
-hi link rubyModule            Keyword 
-hi link rubyKeyword           Keyword 
-hi link rubyOperator          Operator
-hi link rubyIdentifier        Identifier
-hi link rubyInstanceVariable  Identifier
-hi link rubyGlobalVariable    Identifier
-hi link rubyClassVariable     Identifier
-hi link rubyConstant          Type  
-
-
-" Special for Java
-" hi link javaClassDecl    Type
-hi link javaScopeDecl         Identifier 
-hi link javaCommentTitle      javaDocSeeTag 
-hi link javaDocTags           javaDocSeeTag 
-hi link javaDocParam          javaDocSeeTag 
-hi link javaDocSeeTagParam    javaDocSeeTag 
-
-hi javaDocSeeTag              guifg=#CCCCCC     guibg=NONE        gui=NONE      ctermfg=darkgray    ctermbg=NONE        cterm=NONE
-hi javaDocSeeTag              guifg=#CCCCCC     guibg=NONE        gui=NONE      ctermfg=darkgray    ctermbg=NONE        cterm=NONE
-"hi javaClassDecl              guifg=#CCFFCC     guibg=NONE        gui=NONE      ctermfg=white       ctermbg=NONE        cterm=NONE
-
-
-" Special for XML
-hi link xmlTag          Keyword 
-hi link xmlTagName      Conditional 
-hi link xmlEndTag       Identifier 
-
-
-" Special for HTML
-hi link htmlTag         Keyword 
-hi link htmlTagName     Conditional 
-hi link htmlEndTag      Identifier 
-
-
-" Special for Javascript
-hi link javaScriptNumber      Number 
-
-
-" Special for Python
-"hi  link pythonEscape         Keyword      
-
-
-" Special for CSharp
-hi  link csXmlTag             Keyword      
-
-
-" Special for PHP

colors/mustang.vim

-" Maintainer:	Henrique C. Alves (hcarvalhoalves@gmail.com)
-" Version:      1.0
-" Last Change:	September 25 2008
-
-set background=dark
-
-hi clear
-
-if exists("syntax_on")
-  syntax reset
-endif
-
-let colors_name = "mustang"
-
-" Vim >= 7.0 specific colors
-if version >= 700
-  hi CursorLine guibg=#2d2d2d ctermbg=236
-  hi CursorColumn guibg=#2d2d2d ctermbg=236
-  hi MatchParen guifg=#d0ffc0 guibg=#2f2f2f gui=bold ctermfg=157 ctermbg=237 cterm=bold
-  hi Pmenu 		guifg=#ffffff guibg=#444444 ctermfg=255 ctermbg=238
-  hi PmenuSel 	guifg=#000000 guibg=#b1d631 ctermfg=0 ctermbg=148
-endif
-
-" General colors
-hi Cursor 		guifg=NONE    guibg=#626262 gui=none ctermbg=241
-hi Normal 		guifg=#e2e2e5 guibg=#202020 gui=none ctermfg=253 ctermbg=234
-hi NonText 		guifg=#808080 guibg=#303030 gui=none ctermfg=244 ctermbg=235
-hi LineNr 		guifg=#808080 guibg=#000000 gui=none ctermfg=244 ctermbg=232
-hi StatusLine 	guifg=#d3d3d5 guibg=#444444 gui=italic ctermfg=253 ctermbg=238 cterm=italic
-hi StatusLineNC guifg=#939395 guibg=#444444 gui=none ctermfg=246 ctermbg=238
-hi VertSplit 	guifg=#444444 guibg=#444444 gui=none ctermfg=238 ctermbg=238
-hi Folded 		guibg=#384048 guifg=#a0a8b0 gui=none ctermbg=4 ctermfg=248
-hi Title		guifg=#f6f3e8 guibg=NONE	gui=bold ctermfg=254 cterm=bold
-hi Visual		guifg=#faf4c6 guibg=#3c414c gui=none ctermfg=254 ctermbg=4
-hi SpecialKey	guifg=#808080 guibg=#343434 gui=none ctermfg=244 ctermbg=236
-
-" Syntax highlighting
-hi Comment 		guifg=#808080 gui=italic ctermfg=244
-hi Todo 		guifg=#8f8f8f gui=italic ctermfg=245
-hi Boolean      guifg=#b1d631 gui=none ctermfg=148
-hi String 		guifg=#b1d631 gui=italic ctermfg=148
-hi Identifier 	guifg=#b1d631 gui=none ctermfg=148
-hi Function 	guifg=#ffffff gui=bold ctermfg=255
-hi Type 		guifg=#7e8aa2 gui=none ctermfg=103
-hi Statement 	guifg=#7e8aa2 gui=none ctermfg=103
-hi Keyword		guifg=#ff9800 gui=none ctermfg=208
-hi Constant 	guifg=#ff9800 gui=none  ctermfg=208
-hi Number		guifg=#ff9800 gui=none ctermfg=208
-hi Special		guifg=#ff9800 gui=none ctermfg=208
-hi PreProc 		guifg=#faf4c6 gui=none ctermfg=230
-hi Todo         guifg=#000000 guibg=#e6ea50 gui=italic
-
-" Code-specific colors
-hi pythonOperator guifg=#7e8aa2 gui=none ctermfg=103
-

colors/two2tango.vim

-" Vim color file
-" Name: two2tango
-" Maintainer: Erik Falor <ewfalor@gmail.com>
-" Version: 1.1
-"
-" Big props to Panos Laganakos <panos.laganakos@gmail.com>
-" for the original darktango.vim colorscheme upon which 
-" this scheme is based.
-
-set background=dark
-if version > 580
-	" no guarantees for version 5.8 and below, but this makes it stop
-	" complaining
-	hi clear
-	if exists("syntax_on")
-		syntax reset
-	endif
-endif
-
-let g:colors_name="two2tango"
-
-"Tango palette
-"http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines
-" {{{
-let s:Butter		= ['#fce94f', '#edd400', '#c4a000']
-let s:Chameleon		= ['#8ae234', '#73d216', '#4e9a06']
-let s:Orange		= ['#fcaf3e', '#f57900', '#ce5c00']
-let s:SkyBlue		= ['#729fcf', '#3465a4', '#204a87']
-let s:Plum			= ['#ad7fa8', '#75507b', '#5c3566']
-let s:Chocolate		= ['#e9b96e', '#c17d11', '#8f5902']
-let s:ScarletRed	= ['#ef2929', '#cc0000', '#a40000']
-let s:Aluminium		= ['#eeeeec', '#d3d7cf', '#babdb6',
-					\'#888a85', '#555753', '#2e3436']
-"This color isn't part of the Tango Palette; I use it because there
-"isn't a Tango color that provides enough contrast
-let s:Background    = '#212628'
-" }}}
-
-hi Normal      guibg=#2e3436 guifg=#d3d7cf
-execute "hi Normal      guibg=" . s:Aluminium[5]  . " guifg=" . s:Aluminium[1] 
-
-" {{{ syntax
-execute "hi Comment      gui=italic guifg=" . s:Aluminium[4]
-execute "hi Conditional  gui=bold guifg=" . s:Butter[2]
-execute "hi Constant     guifg=" . s:Chocolate[1]
-execute "hi Error        guifg=" . s:Aluminium[0] . " guibg=" . s:ScarletRed[2]
-execute "hi Identifier   guifg=" . s:Orange[2]
-execute "hi Ignore       guifg=" . s:Aluminium[5] . " guibg=" . s:Aluminium[5]
-execute "hi Operator     guifg=" . s:Butter[1]
-execute "hi PreProc      guifg=" . s:Chocolate[0]
-execute "hi Repeat       gui=bold guifg=" . s:Butter[2]
-execute "hi Special      guifg=" . s:SkyBlue[1]
-execute "hi Statement    guifg=" . s:Aluminium[3]
-execute "hi String       guifg=" . s:SkyBlue[0]
-execute "hi Title        guifg=" . s:Aluminium[0]
-execute "hi Todo         gui=bold guisp=NONE guibg=" . s:Orange[2] 
-			\. " guifg=" . s:Aluminium[0] 
-execute "hi Type         guifg=" . s:Orange[2]
-execute "hi Underlined   gui=underline guifg=" . s:SkyBlue[0]
-" }}}
-
-" {{{ groups
-execute "hi Cursor       guibg=" . s:ScarletRed[0] . " guifg=" . s:Aluminium[5]
-execute "hi CursorLine   guibg=" . s:Background
-execute "hi CursorColumn guibg=" . s:Background
-"hi CursorIM TODO
-execute "hi Directory    guifg=" . s:SkyBlue[0]
-execute "hi ErrorMsg     guifg=" . s:Aluminium[0] . " guibg=" . s:ScarletRed[2]
-execute "hi FoldColumn   guibg=" . s:Aluminium[5] . " guifg=" . s:Aluminium[4]
-execute "hi Folded       guibg=" . s:Aluminium[4] . " guifg=" . s:Aluminium[2]
-execute "hi IncSearch    gui=none guibg=" . s:Butter[0] . " guifg=" . s:Butter[2] 
-execute "hi LineNr       guibg=" . s:Aluminium[5] . " guifg=" . s:Aluminium[4]
-execute "hi MatchParen   guibg=" . s:Aluminium[2] . " guifg=" . s:Aluminium[5]
-"hi Menu      TODO
-execute "hi ModeMsg      guifg=" . s:Orange[2]
-execute "hi MoreMsg      guifg=" . s:Orange[2]
-execute "hi NonText      guibg=" . s:Aluminium[5] . " guifg=" . s:Aluminium[4]
-execute "hi Pmenu        guibg=" . s:Aluminium[2] . " guifg=" . s:Aluminium[4]
-execute "hi PmenuSel     guibg=" . s:Aluminium[0] . " guifg=" . s:Aluminium[5]
-execute "hi Question     guifg=" . s:Plum[0] 
-"hi Scrollbar TODO
-execute "hi Search       guibg=" . s:Butter[0] . " guifg=" . s:Butter[2]
-execute "hi SpecialKey   guifg=" . s:Orange[2]
-execute "hi StatusLine   gui=none guibg=" . s:Orange[2] . " guifg=" . s:Aluminium[0]
-execute "hi StatusLineNC gui=none guibg=" . s:Aluminium[3] . " guifg=" . s:Aluminium[5]
-"hi TabLine     TODO - non-active tab page label
-"hi TabLineFill TODO - fill color where there are no tabs
-"hi TabLineSel  TODO - active tab page label
-execute "hi Tooltip      gui=none guibg=" . s:SkyBlue[0] . " guifg=" . s:Aluminium[0]
-execute "hi VertSplit    gui=none guibg=" . s:Aluminium[3] . " guifg=" . s:Aluminium[5]
-execute "hi Visual       guibg=" . s:Orange[0] . " guifg=" . s:Orange[2]
-"hi VisualNOS   TODO - Visual mode selection when vim is "Not Owning the Selection".
-execute "hi WarningMsg   guifg=" . s:Orange[0]
-execute "hi WildMenu     guifg=" . s:Butter[2] . " guibg=" . s:Butter[0]
-" }}}
-
-"  {{{ terminal
-" TODO
-" }}}
-
-" vim: sw=4 foldmethod=marker

colors/xoria256.vim

-" Vim color file
-"
-" Name:       xoria256.vim
-" Version:    1.1
-" Maintainer:	Dmitriy Y. Zotikov (xio) <xio@ungrund.org>
-"
-" Should work in recent 256 color terminals.  88-color terms like urxvt are
-" unsupported.
-"
-" Don't forget to install 'ncurses-term' and set TERM to xterm-256color or
-" similar value.
-"
-" Color numbers (0-255) see:
-" http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
-
-
-
-" Bla-bla ----------------------------------------------------------------------
-
-if &t_Co != 256 && ! has("gui_running")
-  echomsg ""
-  echomsg "err: please use GUI or a 256-color terminal (so that t_Co=256 could be set)"
-  echomsg ""
-  finish
-endif
-
-set background=dark
-
-hi clear
-
-if exists("syntax_on")
-  syntax reset
-endif
-
-let colors_name = "xoria256"
-
-
-
-" The real part ----------------------------------------------------------------
-
-"" General colors
-hi Normal       ctermfg=252 guifg=#d0d0d0 ctermbg=234 guibg=#1c1c1c cterm=none gui=none
-hi CursorColumn                           ctermbg=238 guibg=#444444
-hi Cursor                                 ctermbg=214 guibg=#ffaf00
-hi CursorLine                             ctermbg=238 guibg=#444444
-hi FoldColumn   ctermfg=248 guifg=#a8a8a8 ctermbg=bg  guibg=bg
-hi Folded       ctermfg=255 guifg=#eeeeee ctermbg=60  guibg=#5f5f87
-hi IncSearch    ctermfg=0   guifg=#000000 ctermbg=223 guibg=#ffdfaf cterm=none gui=none
-hi NonText      ctermfg=248 guifg=#a8a8a8                           cterm=bold gui=bold
-hi Pmenu        ctermfg=0   guifg=#000000 ctermbg=246 guibg=#949494
-hi PmenuSbar                              ctermbg=243 guibg=#767676
-hi PmenuSel     ctermfg=0   guifg=#000000 ctermbg=243 guibg=#767676
-hi PmenuThumb                             ctermbg=252 guibg=#d0d0d0
-hi Search       ctermfg=0   guifg=#000000 ctermbg=149 guibg=#afdf5f
-hi SignColumn   ctermfg=248 guifg=#a8a8a8
-hi SpecialKey   ctermfg=77  guifg=#5fdf5f
-hi StatusLine                             ctermbg=239 guibg=#4e4e4e cterm=bold gui=bold
-hi StatusLineNC                           ctermbg=237 guibg=#3a3a3a cterm=none gui=none
-hi TabLine      ctermfg=fg  guifg=fg      ctermbg=242 guibg=#666666 cterm=underline gui=underline
-hi TabLineFill  ctermfg=fg  guifg=fg      ctermbg=242 guibg=#666666 cterm=underline gui=underline
-hi VertSplit    ctermfg=237 guifg=#3a3a3a ctermbg=237 guibg=#3a3a3a cterm=none gui=none
-hi Visual       ctermfg=24  guifg=#005f87 ctermbg=153 guibg=#afdfff
-hi VIsualNOS    ctermfg=24  guifg=#005f87 ctermbg=153 guibg=#afdfff cterm=none gui=none
-hi WildMenu     ctermfg=0   guifg=#000000 ctermbg=184 guibg=#dfdf00 cterm=bold gui=bold
-
-"" Syntax highlighting
-hi Comment      ctermfg=244 guifg=#808080
-hi Constant     ctermfg=229 guifg=#ffffaf
-hi Error        ctermfg=15  guifg=#ffffff ctermbg=1   guibg=#800000
-hi ErrorMsg     ctermfg=15  guifg=#ffffff ctermbg=1   guibg=#800000
-hi Identifier   ctermfg=182 guifg=#dfafdf                           cterm=none
-hi Ignore       ctermfg=238 guifg=#444444
-hi LineNr       ctermfg=248 guifg=#a8a8a8
-hi MatchParen   ctermfg=188 guifg=#dfdfdf ctermbg=68  guibg=#5f87df cterm=bold gui=bold
-hi Number       ctermfg=180 guifg=#dfaf87
-hi PreProc      ctermfg=150 guifg=#afdf87
-hi Special      ctermfg=174 guifg=#df8787
-hi Statement    ctermfg=110 guifg=#87afdf                           cterm=none gui=none
-hi Todo         ctermfg=0   guifg=#000000 ctermbg=184 guibg=#dfdf00
-hi Type         ctermfg=146 guifg=#afafdf                           cterm=none gui=none
-hi Underlined   ctermfg=39  guifg=#00afff                           cterm=underline gui=underline
-
-"" Special
-""" .diff
-hi diffAdded    ctermfg=150 guifg=#afdf87
-hi diffRemoved  ctermfg=174 guifg=#df8787
-""" vimdiff
-hi diffAdd      ctermfg=bg  guifg=bg      ctermbg=151 guibg=#afdfaf
-"hi diffDelete   ctermfg=bg  guifg=bg      ctermbg=186 guibg=#dfdf87 cterm=none gui=none
-hi diffDelete   ctermfg=bg  guifg=bg      ctermbg=246 guibg=#949494 cterm=none gui=none
-hi diffChange   ctermfg=bg  guifg=bg      ctermbg=181 guibg=#dfafaf
-hi diffText     ctermfg=bg  guifg=bg      ctermbg=174 guibg=#df8787 cterm=none gui=none
-
-" vim: set expandtab tabstop=2 shiftwidth=2 smarttab softtabstop=2:

ftplugin/html/zencoding.vim

 "=============================================================================
 " File: zencoding.vim
 " Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
-" Last Change: 23-Apr-2010.
-" Version: 0.36
+" Last Change: 13-May-2010.
+" Version: 0.40
 " WebPage: http://github.com/mattn/zencoding-vim
 " Description: vim plugins for HTML and CSS hi-speed coding.
 " SeeAlso: http://code.google.com/p/zen-coding/
 
 for s:item in [
 \ {'mode': 'i', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandAbbr', 'func': '<c-g>u<esc>:call <sid>zen_expandAbbr(0)<cr>a'},
-\ {'mode': 'i', 'var': 'user_zen_expandword_key', 'key': '.', 'plug': 'ZenCodingExpandWord', 'func': '<c-g>u<esc>:call <sid>zen_expandAbbr(1)<cr>a'},
 \ {'mode': 'v', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandVisual', 'func': ':call <sid>zen_expandAbbr(2)<cr>'},
 \ {'mode': 'n', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandNormal', 'func': ':call <sid>zen_expandAbbr(3)<cr>'},
+\ {'mode': 'i', 'var': 'user_zen_expandword_key', 'key': ';', 'plug': 'ZenCodingExpandWord', 'func': '<c-g>u<esc>:call <sid>zen_expandAbbr(1)<cr>a'},
+\ {'mode': 'n', 'var': 'user_zen_expandword_key', 'key': ',', 'plug': 'ZenCodingExpandWord', 'func': ':call <sid>zen_expandAbbr(1)<cr>'},
 \ {'mode': 'i', 'var': 'user_zen_balancetaginward_key', 'key': 'd', 'plug': 'ZenCodingBalanceTagInwardInsert', 'func': '<esc>:call <sid>zen_balanceTag(1)<cr>a'},
 \ {'mode': 'n', 'var': 'user_zen_balancetaginward_key', 'key': 'd', 'plug': 'ZenCodingBalanceTagInwardNormal', 'func': ':call <sid>zen_balanceTag(1)<cr>'},
 \ {'mode': 'v', 'var': 'user_zen_balancetaginward_key', 'key': 'd', 'plug': 'ZenCodingBalanceTagInwardVisual', 'func': ':call <sid>zen_balanceTag(2)<cr>'},
   endif
   silent! exe "normal! ".len(part)."h"
   if search('\$cursor\$', 'e')
-    silent! exe "normal! a" . repeat("\<c-h>", 8)
+    let oldselection = &selection
+    let &selection = 'inclusive'
+    silent! exe "normal! v7h\"_s"
+    let &selection = oldselection
   endif
 endfunction
 
   if fn !~ '^\(/\|http\)'
     let fn = simplify(expand('%:h') . '/' . fn)
   endif
-  let [w, h] = [-1, -1]
+  let [type, width, height] = ['', -1, -1]
   
-  if has('perl')
-perl <<EOF
-no warnings;
-eval {
-  require Image::Info;
-  my $fn = ''.VIM::Eval('l:fn');
-  my $ii;
-  if ($fn =~ /^https?\:\/\//) {
-    require File::Temp;
-    require LWP::Simple;
-    my $tmp = File::Temp::tmpnam();
-    LWP::Simple::mirror($fn, $tmp);
-    $ii = Image::Info::image_info($tmp);
-    unlink $tmp;
-  } else {
-    $ii = Image::Info::image_info($fn);
-  }
-  VIM::DoCommand(sprintf('let [w, h] = [%d,%d]', $ii->{width} || -1, $ii->{height} || -1));
-  undef $ii;
-};
-VIM::Msg($@, "ErrorMsg") if $@;
-EOF
+  if filereadable(fn)
+    let hex = substitute(system('xxd -p "'.fn.'"'), '\n', '', 'g')
+  else
+    let hex = substitute(system('curl -s "'.fn.'" | xxd -p'), '\n', '', 'g')
   endif
 
-  if w == -1 && h == -1
+  if hex =~ '^89504e470d0a1a0a'
+    let type = 'png'
+    let width = eval('0x'.hex[32:39])
+    let height = eval('0x'.hex[40:47])
+  endif
+  if hex =~ '^ffd8'
+    let pos = match(hex, 'ffc[02]')
+    let type = 'jpg'
+    let height = eval('0x'.hex[pos+10:pos+11])*256 + eval('0x'.hex[pos+12:pos+13])
+    let width = eval('0x'.hex[pos+14:pos+15])*256 + eval('0x'.hex[pos+16:pos+17])
+  endif
+  if hex =~ '^47494638'
+    let type = 'gif'
+    let width = eval('0x'.hex[18:19].hex[16:17])
+    let height = eval('0x'.hex[14:15].hex[12:13])
+  endif
+
+  if width == -1 && height == -1
     return
   endif
-  let current.attr.width = w
-  let current.attr.height = h
+  let current.attr.width = width
+  let current.attr.height = height
   let html = s:zen_toString(current, 'html', 1)
   call s:change_content(img_region, html)
 endfunction

plugin/zencoding.vim

 "=============================================================================
 " File: zencoding.vim
 " Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
-" Last Change: 23-Apr-2010.
-" Version: 0.36
+" Last Change: 13-May-2010.
+" Version: 0.40
 " WebPage: http://github.com/mattn/zencoding-vim
 " Description: vim plugins for HTML and CSS hi-speed coding.
 " SeeAlso: http://code.google.com/p/zen-coding/
 
 for s:item in [
 \ {'mode': 'i', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandAbbr', 'func': '<c-g>u<esc>:call <sid>zen_expandAbbr(0)<cr>a'},
-\ {'mode': 'i', 'var': 'user_zen_expandword_key', 'key': '.', 'plug': 'ZenCodingExpandWord', 'func': '<c-g>u<esc>:call <sid>zen_expandAbbr(1)<cr>a'},
 \ {'mode': 'v', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandVisual', 'func': ':call <sid>zen_expandAbbr(2)<cr>'},
 \ {'mode': 'n', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandNormal', 'func': ':call <sid>zen_expandAbbr(3)<cr>'},
+\ {'mode': 'i', 'var': 'user_zen_expandword_key', 'key': ';', 'plug': 'ZenCodingExpandWord', 'func': '<c-g>u<esc>:call <sid>zen_expandAbbr(1)<cr>a'},
+\ {'mode': 'n', 'var': 'user_zen_expandword_key', 'key': ',', 'plug': 'ZenCodingExpandWord', 'func': ':call <sid>zen_expandAbbr(1)<cr>'},
 \ {'mode': 'i', 'var': 'user_zen_balancetaginward_key', 'key': 'd', 'plug': 'ZenCodingBalanceTagInwardInsert', 'func': '<esc>:call <sid>zen_balanceTag(1)<cr>a'},
 \ {'mode': 'n', 'var': 'user_zen_balancetaginward_key', 'key': 'd', 'plug': 'ZenCodingBalanceTagInwardNormal', 'func': ':call <sid>zen_balanceTag(1)<cr>'},
 \ {'mode': 'v', 'var': 'user_zen_balancetaginward_key', 'key': 'd', 'plug': 'ZenCodingBalanceTagInwardVisual', 'func': ':call <sid>zen_balanceTag(2)<cr>'},
   endif
   silent! exe "normal! ".len(part)."h"
   if search('\$cursor\$', 'e')
-    silent! exe "normal! a" . repeat("\<c-h>", 8)
+    let oldselection = &selection
+    let &selection = 'inclusive'
+    silent! exe "normal! v7h\"_s"
+    let &selection = oldselection
   endif
 endfunction
 
   if fn !~ '^\(/\|http\)'
     let fn = simplify(expand('%:h') . '/' . fn)
   endif
-  let [w, h] = [-1, -1]
+  let [type, width, height] = ['', -1, -1]
   
-  if has('perl')
-perl <<EOF
-no warnings;
-eval {
-  require Image::Info;
-  my $fn = ''.VIM::Eval('l:fn');
-  my $ii;
-  if ($fn =~ /^https?\:\/\//) {
-    require File::Temp;
-    require LWP::Simple;
-    my $tmp = File::Temp::tmpnam();
-    LWP::Simple::mirror($fn, $tmp);
-    $ii = Image::Info::image_info($tmp);
-    unlink $tmp;
-  } else {
-    $ii = Image::Info::image_info($fn);
-  }
-  VIM::DoCommand(sprintf('let [w, h] = [%d,%d]', $ii->{width} || -1, $ii->{height} || -1));
-  undef $ii;
-};
-VIM::Msg($@, "ErrorMsg") if $@;
-EOF
+  if filereadable(fn)
+    let hex = substitute(system('xxd -p "'.fn.'"'), '\n', '', 'g')
+  else
+    let hex = substitute(system('curl -s "'.fn.'" | xxd -p'), '\n', '', 'g')
   endif
 
-  if w == -1 && h == -1
+  if hex =~ '^89504e470d0a1a0a'
+    let type = 'png'
+    let width = eval('0x'.hex[32:39])
+    let height = eval('0x'.hex[40:47])
+  endif
+  if hex =~ '^ffd8'
+    let pos = match(hex, 'ffc[02]')
+    let type = 'jpg'
+    let height = eval('0x'.hex[pos+10:pos+11])*256 + eval('0x'.hex[pos+12:pos+13])
+    let width = eval('0x'.hex[pos+14:pos+15])*256 + eval('0x'.hex[pos+16:pos+17])
+  endif
+  if hex =~ '^47494638'
+    let type = 'gif'
+    let width = eval('0x'.hex[18:19].hex[16:17])
+    let height = eval('0x'.hex[14:15].hex[12:13])
+  endif
+
+  if width == -1 && height == -1
     return
   endif
-  let current.attr.width = w
-  let current.attr.height = h
+  let current.attr.width = width
+  let current.attr.height = height
   let html = s:zen_toString(current, 'html', 1)
   call s:change_content(img_region, html)
 endfunction

snippets/css.snippets

 snippet /
 	/* ${1} */
 snippet //
-	/* -------------------------------------------------------------- 
-			${1} 
+	/* -------------------------------------------------------------- start
+			${1}
 	-------------------------------------------------------------- */
+	${2}
+	/* -------------------------------------------------------------- end */
 snippet ///
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- start
+		${1} 
 	-----------------------------------------------------------------
-			${1} 
-	-----------------------------------------------------------------
-	-------------------------------------------------------------- */
+	----------------------------------------------------------------- end */
 #
 # Windows file name reserve
 # Yes I know, this is really dumb
 snippet con
-	color: ${1:red};${2}
+	color: none;
 #
 # Personal 
 snippet =mine
 	a, a:visited {color: #${1:fff}; text-decoration: underline;}
 	a:hover {text-decoration: none;}
 snippet =layout
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- start
+		Layout
+			Defaults
+			Main
+			Header
+			Content
+			Sidebar
+			Footer
+			Etc
+
 	-----------------------------------------------------------------
-			Layout
-
-				Defaults
-				Main
-				Header
-				Content
-				Sidebar
-				Footer
-				Etc
-	-----------------------------------------------------------------
-	-------------------------------------------------------------- */
-
-	/* -------------------------------------------------------------- 
+	----------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Defaults
 	-------------------------------------------------------------- */
 	body {background: #ccc; color: #a19381}
 	div, ul, ol, li, form {position:relative}
 
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Main
 	-------------------------------------------------------------- */
 	#wrapper {width: 940px; margin: 0 auto}
 	#sidebar {}
 	#footer  {}
 	
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Header 
 	-------------------------------------------------------------- */
 	#header {}
 
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Content 
 	-------------------------------------------------------------- */
 	#content {}
 
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Sidebar 
 	-------------------------------------------------------------- */
 	#sidebar {}
 
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Footer 
 	-------------------------------------------------------------- */
 	#footer {}
-
-	/* -------------------------------------------------------------- 
+	
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Etc 
 	-------------------------------------------------------------- */
 	.font12 {font-size: 12px}
 	.width50  {width: 50%} 
 	.width65  {width: 65%} 
 	.width100 {width: 100%}
+
+	/* -------------------------------------------------------------- end */
 snippet =typo
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- start
+		Typography 
+			Font families
+			Defaults
+			Headings
+				Specifics: h2
+				Specifics: h3
+			Links
+			Colors
 	-----------------------------------------------------------------
-			Typography 
-
-				Font families
-				Defaults
-				Headings
-					Specifics: h2
-					Specifics: h3
-				Links
-				Colors
-	-----------------------------------------------------------------
-	-------------------------------------------------------------- */
-
-	/* -------------------------------------------------------------- 
+	----------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Font families
 	-------------------------------------------------------------- */
 	body {font: 13px/22px Arial, Helvetica, sans-serif;}
 
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Defaults 
 	-------------------------------------------------------------- */
 	p,ul,ol {margin-bottom: 15px;}
 	a, a:visited {color: #009; text-decoration: underline;}
 	a:hover {color: #d54e21; text-decoration: none;}
 
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Headings 
 	-------------------------------------------------------------- */
 	h1, h2, h3, h4, h5, h6 {margin-bottom: 10px;}
 	h6 {font-size: 16px}
 	h2,h4,h6 {}
 		
-		/* Specifics: h2 */
-
-		/* Specifics: h3 */
+	/* -------------------------------------------------------------- end */
+		/* -------------------------------------------------------------- start
+				Specifics: h2 
+		-------------------------------------------------------------- */
 		
-	/* -------------------------------------------------------------- 
+		/* -------------------------------------------------------------- end */
+		/* -------------------------------------------------------------- start
+				Specifics: h3
+		-------------------------------------------------------------- */
+		
+		/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Links
 	-------------------------------------------------------------- */
-
-	/* -------------------------------------------------------------- 
+	
+	/* -------------------------------------------------------------- end */
+	/* -------------------------------------------------------------- start
 			Colors 
 	-------------------------------------------------------------- */
 	.blue {color: #009}
+
+	/* -------------------------------------------------------------- end */
 snippet =text
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- start
 			Text elements 
 	-------------------------------------------------------------- */
 	ul { list-style-type: circle; }
 	pre {background: #f9f9f9; border:1px solid #ccc; padding: 9px; font-size: 90%; overflow: auto; border-left: 20px solid #ddd;}
 	pre code {background: none }
 	tt { display: block; margin: 1.5em 0; line-height: 1.5; }
+
+	/* -------------------------------------------------------------- end */
 snippet =style
-	/* -------------------------------------------------------------- 
+	/* -------------------------------------------------------------- start
 			Styles 
 	-------------------------------------------------------------- */
 	/* Div and Span styles */
 	div.download, span.download,
 	div.tip, span.tip {background-position: 10px 8px; padding: 8px 10px 8px 40px; margin: 10px 0; background-repeat: no-repeat;}
 
-	/* Inline Styles  */
-	a.icon-folder   {background-image: url(../images/icon-folder.png)} 
-	a.icon-file     {background-image: url(../images/icon-file.png)  } 
-	a.icon-download {background-image: url(../images/icon-download.png)} 
-	a.icon-pdf      {background-image: url(../images/icon-pdf.png)   } 
-	a.icon-zip      {background-image: url(../images/icon-zip.png)   } 
+	/* -------------------------------------------------------------- end */
+		/* -------------------------------------------------------------- start
+				Inline Styles 
+		-------------------------------------------------------------- */
+		a.icon-folder   {background-image: url(../images/icon-folder.png)} 
+		a.icon-file     {background-image: url(../images/icon-file.png)  } 
+		a.icon-download {background-image: url(../images/icon-download.png)} 
+		a.icon-pdf      {background-image: url(../images/icon-pdf.png)   } 
+		a.icon-zip      {background-image: url(../images/icon-zip.png)   } 
 
-	a.icon-folder,
-	a.icon-file,
-	a.icon-download,
-	a.icon-pdf,
-	a.icon-zip {background-repeat: no-repeat; background-position: left center; padding: 2px 0 2px 20px}
+		a.icon-folder,
+		a.icon-file,
+		a.icon-download,
+		a.icon-pdf,
+		a.icon-zip {background-repeat: no-repeat; background-position: left center; padding: 2px 0 2px 20px}
 
-	/* Unordered List Styles  */
-	ul {margin: 0 0 10px 18px}
-	ul.menu {margin: 0}
-	ul.links    {list-style-type: none; margin-left: 2px;}
-	ul.links li {background-repeat: no-repeat; background-position: 0 5px; padding-left: 18px} 
-	ul.links li a {color: #4C6E94;}
-	ul.links li a:hover {text-decoration: none; color: #d54e21;}
-	.box ul.links {margin-left: 10px; margin-bottom: 5px} 
+		/* -------------------------------------------------------------- end */
+		/* -------------------------------------------------------------- start
+				Unordered List Styles
+		-------------------------------------------------------------- */
+		ul {margin: 0 0 10px 18px}
+		ul.menu {margin: 0}
+		ul.links    {list-style-type: none; margin-left: 2px;}
+		ul.links li {background-repeat: no-repeat; background-position: 0 5px; padding-left: 18px} 
+		ul.links li a {color: #4C6E94;}
+		ul.links li a:hover {text-decoration: none; color: #d54e21;}
+		.box ul.links {margin-left: 10px; margin-bottom: 5px} 
 
-	ul.check, ul.star {list-style-type: none; margin: 10px 0}
-	ul.check li, ul.star li {padding-left: 30px; margin: 5px 0; line-height: 22px}
-	ul.check li {background: url(../images/list-check.png) no-repeat}
-	ul.star li {background: url(../images/list-star.png) no-repeat}
+		ul.check, ul.star {list-style-type: none; margin: 10px 0}
+		ul.check li, ul.star li {padding-left: 30px; margin: 5px 0; line-height: 22px}
+		ul.check li {background: url(../images/list-check.png) no-repeat}
+		ul.star li {background: url(../images/list-star.png) no-repeat}
 
-	/* Ordered List Styles  */
-	ol {margin: 0 0 10px 20px}
-	ol.circle {padding-left: 22px; margin-left: 0; line-height: 20px; background: url(../images/list-circle.png) repeat-y}
-	ol.circle li {margin-bottom: 4px; font-size: 11px;}
+		/* -------------------------------------------------------------- end */
+		/* -------------------------------------------------------------- start
+				Ordered List Styles
+		-------------------------------------------------------------- */
+		ol {margin: 0 0 10px 20px}
+		ol.circle {padding-left: 22px; margin-left: 0; line-height: 20px; background: url(../images/list-circle.png) repeat-y}
+		ol.circle li {margin-bottom: 4px; font-size: 11px;}
 
-	/* Horizontal Rule */
-	hr {background: #ccc; border: 0 none; display: block; height: 1px; margin: 15px 0}
-	hr.none {height: 0}
-	hr.dotted {background: url(../images/hr-dotted.png) repeat-x}
-	hr.dotted2 {background: url(../images/hr-dotted2.png) repeat-x; height: 2px;}
-	.box div.hr hr {display: none}
-	.box div.hr {height: 2px; margin-bottom: 10px}
+		/* -------------------------------------------------------------- end */
+		/* -------------------------------------------------------------- start
+				Horizontal Rule
+		-------------------------------------------------------------- */
+		hr {background: #ccc; border: 0 none; display: block; height: 1px; margin: 15px 0}
+		hr.none {height: 0}
+		hr.dotted {background: url(../images/hr-dotted.png) repeat-x}
+		hr.dotted2 {background: url(../images/hr-dotted2.png) repeat-x; height: 2px;}
+		.box div.hr hr {display: none}
+		.box div.hr {height: 2px; margin-bottom: 10px}
 #
 # 
 snippet ../i
 nnoremap <silent> <Space> @=(foldlevel('.')?'za':'l')<CR>
 vnoremap <Space> zf
 
+" Folding for CSS
+function! CssFold(lnum)
+  let cline = getline(a:lnum)
+  if cline =~ '\sstart\s*'
+      return 'a1'
+  elseif cline =~ '\send\s'
+      return 's1'
+  else
+      return '='
+  endif
+endfunction
+
+function! s:Complete(txt, width)
+  let length = strlen(a:txt)
+  if length > a:width
+      return a:txt
+  endif
+  return a:txt . repeat(' ', a:width - length)
+endfunction
+
+function! CssFoldText()
+  let lnum = v:foldstart + 1
+  let txt = s:Complete(getline(lnum), 0)
+  return txt
+endfunction
+
+au BufRead,BufNewFile *.css setlocal foldmethod=expr foldexpr=CssFold(v:lnum) foldtext=CssFoldText()
+
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " => Enhanced Commentify
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 autocmd BufWinEnter *.* silent loadview 
 
 au Filetype php,html,htm,xml,xsl,lzx source ~/.vim_mon/scripts/closetag.vim
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.