mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
hooray
This commit is contained in:
parent
d5aee44efe
commit
440fb71bac
22 changed files with 5199 additions and 0 deletions
212
vim/.vim/.vim/colors/inkpot.vim
Normal file
212
vim/.vim/.vim/colors/inkpot.vim
Normal file
|
@ -0,0 +1,212 @@
|
||||||
|
" Vim color file
|
||||||
|
" Name: inkpot.vim
|
||||||
|
" Maintainer: Ciaran McCreesh <ciaran.mccreesh@blueyonder.co.uk>
|
||||||
|
" This should work in the GUI, rxvt-unicode (88 colour mode) and xterm (256
|
||||||
|
" colour mode). It won't work in 8/16 colour terminals.
|
||||||
|
"
|
||||||
|
" To use a black background, :let g:inkpot_black_background = 1
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "inkpot"
|
||||||
|
|
||||||
|
" map a urxvt cube number to an xterm-256 cube number
|
||||||
|
fun! <SID>M(a)
|
||||||
|
return strpart("0135", a:a, 1) + 0
|
||||||
|
endfun
|
||||||
|
|
||||||
|
" map a urxvt colour to an xterm-256 colour
|
||||||
|
fun! <SID>X(a)
|
||||||
|
if &t_Co == 88
|
||||||
|
return a:a
|
||||||
|
else
|
||||||
|
if a:a == 8
|
||||||
|
return 237
|
||||||
|
elseif a:a < 16
|
||||||
|
return a:a
|
||||||
|
elseif a:a > 79
|
||||||
|
return 232 + (3 * (a:a - 80))
|
||||||
|
else
|
||||||
|
let l:b = a:a - 16
|
||||||
|
let l:x = l:b % 4
|
||||||
|
let l:y = (l:b / 4) % 4
|
||||||
|
let l:z = (l:b / 16)
|
||||||
|
return 16 + <SID>M(l:x) + (6 * <SID>M(l:y)) + (36 * <SID>M(l:z))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
if ! exists("g:inkpot_black_background")
|
||||||
|
let g:inkpot_black_background = 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
if ! g:inkpot_black_background
|
||||||
|
hi Normal gui=NONE guifg=#cfbfad guibg=#1e1e27
|
||||||
|
else
|
||||||
|
hi Normal gui=NONE guifg=#cfbfad guibg=#000000
|
||||||
|
endif
|
||||||
|
|
||||||
|
hi IncSearch gui=BOLD guifg=#303030 guibg=#cd8b60
|
||||||
|
hi Search gui=NONE guifg=#303030 guibg=#cd8b60
|
||||||
|
hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ce4e4e
|
||||||
|
hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ce8e4e
|
||||||
|
hi ModeMsg gui=BOLD guifg=#7e7eae guibg=NONE
|
||||||
|
hi MoreMsg gui=BOLD guifg=#7e7eae guibg=NONE
|
||||||
|
hi Question gui=BOLD guifg=#ffcd00 guibg=NONE
|
||||||
|
|
||||||
|
hi StatusLine gui=BOLD guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
hi User1 gui=BOLD guifg=#00ff8b guibg=#3e3e5e
|
||||||
|
hi User2 gui=BOLD guifg=#7070a0 guibg=#3e3e5e
|
||||||
|
hi StatusLineNC gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
hi VertSplit gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
|
||||||
|
hi WildMenu gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
|
||||||
|
hi MBENormal guifg=#cfbfad guibg=#2e2e3f
|
||||||
|
hi MBEChanged guifg=#eeeeee guibg=#2e2e3f
|
||||||
|
hi MBEVisibleNormal guifg=#cfcfcd guibg=#4e4e8f
|
||||||
|
hi MBEVisibleChanged guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
|
||||||
|
hi DiffText gui=NONE guifg=#ffffcd guibg=#4a2a4a
|
||||||
|
hi DiffChange gui=NONE guifg=#ffffcd guibg=#306b8f
|
||||||
|
hi DiffDelete gui=NONE guifg=#ffffcd guibg=#6d3030
|
||||||
|
hi DiffAdd gui=NONE guifg=#ffffcd guibg=#306d30
|
||||||
|
|
||||||
|
hi Cursor gui=NONE guifg=#404040 guibg=#8b8bff
|
||||||
|
hi lCursor gui=NONE guifg=#404040 guibg=#8fff8b
|
||||||
|
hi CursorIM gui=NONE guifg=#404040 guibg=#8b8bff
|
||||||
|
|
||||||
|
hi Folded gui=NONE guifg=#cfcfcd guibg=#4b208f
|
||||||
|
hi FoldColumn gui=NONE guifg=#8b8bcd guibg=#2e2e2e
|
||||||
|
|
||||||
|
hi Directory gui=NONE guifg=#00ff8b guibg=NONE
|
||||||
|
hi LineNr gui=NONE guifg=#8b8bcd guibg=#2e2e2e
|
||||||
|
hi NonText gui=BOLD guifg=#8b8bcd guibg=NONE
|
||||||
|
hi SpecialKey gui=BOLD guifg=#ab60ed guibg=NONE
|
||||||
|
hi Title gui=BOLD guifg=#af4f4b guibg=NONE
|
||||||
|
hi Visual gui=NONE guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
|
||||||
|
hi Comment gui=NONE guifg=#cd8b00 guibg=NONE
|
||||||
|
hi Constant gui=NONE guifg=#ffcd8b guibg=NONE
|
||||||
|
hi String gui=NONE guifg=#ffcd8b guibg=#404040
|
||||||
|
hi Error gui=NONE guifg=#ffffff guibg=#6e2e2e
|
||||||
|
hi Identifier gui=NONE guifg=#ff8bff guibg=NONE
|
||||||
|
hi Ignore gui=NONE
|
||||||
|
hi Number gui=NONE guifg=#f0ad6d guibg=NONE
|
||||||
|
hi PreProc gui=NONE guifg=#409090 guibg=NONE
|
||||||
|
hi Special gui=NONE guifg=#c080d0 guibg=NONE
|
||||||
|
hi SpecialChar gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi Statement gui=NONE guifg=#808bed guibg=NONE
|
||||||
|
hi Todo gui=BOLD guifg=#303030 guibg=#d0a060
|
||||||
|
hi Type gui=NONE guifg=#ff8bff guibg=NONE
|
||||||
|
hi Underlined gui=BOLD guifg=#df9f2d guibg=NONE
|
||||||
|
hi TaglistTagName gui=BOLD guifg=#808bed guibg=NONE
|
||||||
|
|
||||||
|
hi perlSpecialMatch gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi perlSpecialString gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
|
||||||
|
hi cSpecialCharacter gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi cFormat gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
|
||||||
|
hi doxygenBrief gui=NONE guifg=#fdab60 guibg=NONE
|
||||||
|
hi doxygenParam gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenPrev gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenSmallSpecial gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenSpecial gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenComment gui=NONE guifg=#ad7b20 guibg=NONE
|
||||||
|
hi doxygenSpecial gui=NONE guifg=#fdab60 guibg=NONE
|
||||||
|
hi doxygenSpecialMultilineDesc gui=NONE guifg=#ad600b guibg=NONE
|
||||||
|
hi doxygenSpecialOnelineDesc gui=NONE guifg=#ad600b guibg=NONE
|
||||||
|
|
||||||
|
if v:version >= 700
|
||||||
|
hi Pmenu gui=NONE guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
hi PmenuSel gui=BOLD guifg=#eeeeee guibg=#2e2e3f
|
||||||
|
hi PmenuSbar gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
hi PmenuThumb gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
|
||||||
|
hi SpellBad gui=undercurl guisp=#cc6666
|
||||||
|
hi SpellRare gui=undercurl guisp=#cc66cc
|
||||||
|
hi SpellLocal gui=undercurl guisp=#cccc66
|
||||||
|
hi SpellCap gui=undercurl guisp=#66cccc
|
||||||
|
|
||||||
|
hi MatchParen gui=NONE guifg=#404040 guibg=#8fff8b
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
if ! g:inkpot_black_background
|
||||||
|
exec "hi Normal cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(80)
|
||||||
|
else
|
||||||
|
exec "hi Normal cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(16)
|
||||||
|
endif
|
||||||
|
|
||||||
|
exec "hi IncSearch cterm=BOLD ctermfg=" . <SID>X(80) . " ctermbg=" . <SID>X(73)
|
||||||
|
exec "hi Search cterm=NONE ctermfg=" . <SID>X(80) . " ctermbg=" . <SID>X(73)
|
||||||
|
exec "hi ErrorMsg cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(48)
|
||||||
|
exec "hi WarningMsg cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(68)
|
||||||
|
exec "hi ModeMsg cterm=BOLD ctermfg=" . <SID>X(38) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi MoreMsg cterm=BOLD ctermfg=" . <SID>X(38) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Question cterm=BOLD ctermfg=" . <SID>X(52) . " ctermbg=" . "NONE"
|
||||||
|
|
||||||
|
exec "hi StatusLine cterm=BOLD ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi User1 cterm=BOLD ctermfg=" . <SID>X(28) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi User2 cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi StatusLineNC cterm=NONE ctermfg=" . <SID>X(84) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi VertSplit cterm=NONE ctermfg=" . <SID>X(84) . " ctermbg=" . <SID>X(81)
|
||||||
|
|
||||||
|
exec "hi WildMenu cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(38)
|
||||||
|
|
||||||
|
exec "hi MBENormal ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi MBEChanged ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi MBEVisibleNormal ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(82)
|
||||||
|
exec "hi MBEVisibleChanged ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(82)
|
||||||
|
|
||||||
|
exec "hi DiffText cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(34)
|
||||||
|
exec "hi DiffChange cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(17)
|
||||||
|
exec "hi DiffDelete cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi DiffAdd cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(20)
|
||||||
|
|
||||||
|
exec "hi Folded cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(35)
|
||||||
|
exec "hi FoldColumn cterm=NONE ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(80)
|
||||||
|
|
||||||
|
exec "hi Directory cterm=NONE ctermfg=" . <SID>X(28) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi LineNr cterm=NONE ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(80)
|
||||||
|
exec "hi NonText cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi SpecialKey cterm=BOLD ctermfg=" . <SID>X(55) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Title cterm=BOLD ctermfg=" . <SID>X(48) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Visual cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(38)
|
||||||
|
|
||||||
|
exec "hi Comment cterm=NONE ctermfg=" . <SID>X(52) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Constant cterm=NONE ctermfg=" . <SID>X(73) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi String cterm=NONE ctermfg=" . <SID>X(73) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi Error cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi Identifier cterm=NONE ctermfg=" . <SID>X(53) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Ignore cterm=NONE"
|
||||||
|
exec "hi Number cterm=NONE ctermfg=" . <SID>X(69) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi PreProc cterm=NONE ctermfg=" . <SID>X(25) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Special cterm=NONE ctermfg=" . <SID>X(55) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi SpecialChar cterm=NONE ctermfg=" . <SID>X(55) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi Statement cterm=NONE ctermfg=" . <SID>X(27) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Todo cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(57)
|
||||||
|
exec "hi Type cterm=NONE ctermfg=" . <SID>X(71) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Underlined cterm=BOLD ctermfg=" . <SID>X(77) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi TaglistTagName cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . "NONE"
|
||||||
|
|
||||||
|
if v:version >= 700
|
||||||
|
exec "hi Pmenu cterm=NONE ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(82)
|
||||||
|
exec "hi PmenuSel cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(38)
|
||||||
|
exec "hi PmenuSbar cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(39)
|
||||||
|
exec "hi PmenuThumb cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(39)
|
||||||
|
|
||||||
|
exec "hi SpellBad cterm=NONE ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi SpellRare cterm=NONE ctermbg=" . <SID>X(33)
|
||||||
|
exec "hi SpellLocal cterm=NONE ctermbg=" . <SID>X(36)
|
||||||
|
exec "hi SpellCap cterm=NONE ctermbg=" . <SID>X(21)
|
||||||
|
exec "hi MatchParen cterm=NONE ctermbg=" . <SID>X(14) . "ctermfg=" . <SID>X(25)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" vim: set et :
|
172
vim/.vim/.vim/colors/vividchalk.vim
Normal file
172
vim/.vim/.vim/colors/vividchalk.vim
Normal file
|
@ -0,0 +1,172 @@
|
||||||
|
" Vim color scheme
|
||||||
|
" Name: vividchalk.vim
|
||||||
|
" Author: Tim Pope <vimNOSPAM@tpope.info>
|
||||||
|
" GetLatestVimScripts: 1891 1 :AutoInstall: vividchalk.vim
|
||||||
|
" $Id: vividchalk.vim,v 1.8 2007-07-11 18:50:16 tpope Exp $
|
||||||
|
|
||||||
|
" Based on the Vibrank Ink theme for TextMate
|
||||||
|
" Distributable under the same terms as Vim itself (see :help license)
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
set background=dark
|
||||||
|
endif
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "vividchalk"
|
||||||
|
|
||||||
|
" First two functions adapted from inkpot.vim
|
||||||
|
|
||||||
|
" map a urxvt cube number to an xterm-256 cube number
|
||||||
|
fun! s:M(a)
|
||||||
|
return strpart("0245", a:a, 1) + 0
|
||||||
|
endfun
|
||||||
|
|
||||||
|
" map a urxvt colour to an xterm-256 colour
|
||||||
|
fun! s:X(a)
|
||||||
|
if &t_Co == 88
|
||||||
|
return a:a
|
||||||
|
else
|
||||||
|
if a:a == 8
|
||||||
|
return 237
|
||||||
|
elseif a:a < 16
|
||||||
|
return a:a
|
||||||
|
elseif a:a > 79
|
||||||
|
return 232 + (3 * (a:a - 80))
|
||||||
|
else
|
||||||
|
let l:b = a:a - 16
|
||||||
|
let l:x = l:b % 4
|
||||||
|
let l:y = (l:b / 4) % 4
|
||||||
|
let l:z = (l:b / 16)
|
||||||
|
return 16 + s:M(l:x) + (6 * s:M(l:y)) + (36 * s:M(l:z))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
function! E2T(a)
|
||||||
|
return s:X(a:a)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:choose(mediocre,good)
|
||||||
|
if &t_Co != 88 && &t_Co != 256
|
||||||
|
return a:mediocre
|
||||||
|
else
|
||||||
|
return s:X(a:good)
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:hifg(group,guifg,first,second,...)
|
||||||
|
if a:0 && &t_Co == 256
|
||||||
|
let ctermfg = a:1
|
||||||
|
else
|
||||||
|
let ctermfg = s:choose(a:first,a:second)
|
||||||
|
endif
|
||||||
|
exe "highlight ".a:group." guifg=".a:guifg." ctermfg=".ctermfg
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:hibg(group,guibg,first,second)
|
||||||
|
let ctermbg = s:choose(a:first,a:second)
|
||||||
|
exe "highlight ".a:group." guibg=".a:guibg." ctermbg=".ctermbg
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
hi link railsMethod PreProc
|
||||||
|
hi link rubyDefine Keyword
|
||||||
|
hi link rubySymbol Constant
|
||||||
|
hi link rubyAccess rubyMethod
|
||||||
|
hi link rubyAttribute rubyMethod
|
||||||
|
hi link rubyEval rubyMethod
|
||||||
|
hi link rubyException rubyMethod
|
||||||
|
hi link rubyInclude rubyMethod
|
||||||
|
hi link rubyStringDelimiter rubyString
|
||||||
|
hi link rubyRegexp Regexp
|
||||||
|
hi link rubyRegexpDelimiter rubyRegexp
|
||||||
|
"hi link rubyConstant Variable
|
||||||
|
"hi link rubyGlobalVariable Variable
|
||||||
|
"hi link rubyClassVariable Variable
|
||||||
|
"hi link rubyInstanceVariable Variable
|
||||||
|
hi link javascriptRegexpString Regexp
|
||||||
|
hi link javascriptNumber Number
|
||||||
|
hi link javascriptNull Constant
|
||||||
|
|
||||||
|
call s:hifg("Normal","#EEEEEE","White",87)
|
||||||
|
if &background == "light" || has("gui_running")
|
||||||
|
hi Normal guibg=Black ctermbg=Black
|
||||||
|
else
|
||||||
|
hi Normal guibg=Black ctermbg=NONE
|
||||||
|
endif
|
||||||
|
highlight StatusLine guifg=Black guibg=#aabbee gui=bold ctermfg=Black ctermbg=White cterm=bold
|
||||||
|
highlight StatusLineNC guifg=#444444 guibg=#aaaaaa gui=none ctermfg=Black ctermbg=Grey cterm=none
|
||||||
|
"if &t_Co == 256
|
||||||
|
"highlight StatusLine ctermbg=117
|
||||||
|
"else
|
||||||
|
"highlight StatusLine ctermbg=43
|
||||||
|
"endif
|
||||||
|
highlight WildMenu guifg=Black guibg=#ffff00 gui=bold ctermfg=Black ctermbg=Yellow cterm=bold
|
||||||
|
highlight Cursor guifg=Black guibg=White ctermfg=Black ctermbg=White
|
||||||
|
highlight CursorLine guibg=#333333 guifg=NONE
|
||||||
|
highlight CursorColumn guibg=#333333 guifg=NONE
|
||||||
|
highlight NonText guifg=#404040 ctermfg=8
|
||||||
|
highlight SpecialKey guifg=#404040 ctermfg=8
|
||||||
|
highlight Directory none
|
||||||
|
high link Directory Identifier
|
||||||
|
highlight ErrorMsg guibg=Red ctermbg=DarkRed guifg=NONE ctermfg=NONE
|
||||||
|
highlight Search guifg=NONE ctermfg=NONE gui=none cterm=none
|
||||||
|
call s:hibg("Search" ,"#555555","Black",81)
|
||||||
|
highlight IncSearch guifg=White guibg=Black ctermfg=White ctermbg=Black
|
||||||
|
highlight MoreMsg guifg=#00AA00 ctermfg=Green
|
||||||
|
highlight LineNr guifg=#DDEEFF ctermfg=White
|
||||||
|
call s:hibg("LineNr" ,"#222222","DarkBlue",80)
|
||||||
|
highlight Question none
|
||||||
|
high link Question MoreMsg
|
||||||
|
highlight Title guifg=Magenta ctermfg=Magenta
|
||||||
|
highlight VisualNOS gui=none cterm=none
|
||||||
|
call s:hibg("Visual" ,"#555577","LightBlue",83)
|
||||||
|
call s:hibg("VisualNOS" ,"#444444","DarkBlue",81)
|
||||||
|
highlight WarningMsg guifg=Red ctermfg=Red
|
||||||
|
highlight Folded guibg=#1100aa ctermbg=DarkBlue
|
||||||
|
call s:hibg("Folded" ,"#110077","DarkBlue",17)
|
||||||
|
call s:hifg("Folded" ,"#aaddee","LightCyan",63)
|
||||||
|
highlight FoldColumn none
|
||||||
|
high link FoldColumn Folded
|
||||||
|
highlight Pmenu guifg=White ctermfg=White gui=bold cterm=bold
|
||||||
|
highlight PmenuSel guifg=White ctermfg=White gui=bold cterm=bold
|
||||||
|
call s:hibg("Pmenu" ,"#000099","Blue",18)
|
||||||
|
call s:hibg("PmenuSel" ,"#5555ff","DarkCyan",39)
|
||||||
|
highlight PmenuSbar guibg=Grey ctermbg=Grey
|
||||||
|
highlight PmenuThumb guibg=White ctermbg=White
|
||||||
|
highlight TabLine gui=underline cterm=underline
|
||||||
|
call s:hifg("TabLine" ,"#bbbbbb","LightGrey",85)
|
||||||
|
call s:hibg("TabLine" ,"#333333","DarkGrey",80)
|
||||||
|
highlight TabLineSel guifg=White guibg=Black ctermfg=White ctermbg=Black
|
||||||
|
highlight TabLineFill gui=underline cterm=underline
|
||||||
|
call s:hifg("TabLineFill","#bbbbbb","LightGrey",85)
|
||||||
|
call s:hibg("TabLineFill","#808080","Grey",83)
|
||||||
|
|
||||||
|
hi Type gui=none
|
||||||
|
hi Statement gui=none
|
||||||
|
if !has("gui_mac")
|
||||||
|
" Mac GUI degrades italics to ugly underlining.
|
||||||
|
hi Comment gui=italic
|
||||||
|
hi railsUserClass gui=italic
|
||||||
|
hi railsUserMethod gui=italic
|
||||||
|
endif
|
||||||
|
hi Identifier cterm=none
|
||||||
|
" Commented numbers at the end are *old* 256 color values
|
||||||
|
"highlight PreProc guifg=#EDF8F9
|
||||||
|
call s:hifg("Comment" ,"#9933CC","DarkMagenta",34) " 92
|
||||||
|
" 26 instead?
|
||||||
|
call s:hifg("Constant" ,"#339999","DarkCyan",21) " 30
|
||||||
|
call s:hifg("rubyNumber" ,"#CCFF33","Yellow",60) " 190
|
||||||
|
call s:hifg("String" ,"#66FF00","LightGreen",44,82) " 82
|
||||||
|
call s:hifg("Identifier" ,"#FFCC00","Yellow",72) " 220
|
||||||
|
call s:hifg("Statement" ,"#FF6600","Brown",68) " 202
|
||||||
|
call s:hifg("PreProc" ,"#AAFFFF","LightCyan",47) " 213
|
||||||
|
call s:hifg("railsUserMethod","#AACCFF","LightCyan",27)
|
||||||
|
call s:hifg("Type" ,"#AAAA77","Grey",57) " 101
|
||||||
|
call s:hifg("railsUserClass" ,"#AAAAAA","Grey",7) " 101
|
||||||
|
call s:hifg("Special" ,"#33AA00","DarkGreen",24) " 7
|
||||||
|
call s:hifg("Regexp" ,"#44B4CC","DarkCyan",21) " 74
|
||||||
|
call s:hifg("rubyMethod" ,"#DDE93D","Yellow",77) " 191
|
||||||
|
"highlight railsMethod guifg=#EE1122 ctermfg=1
|
51
vim/.vim/.vim/colors/wombat.vim
Normal file
51
vim/.vim/.vim/colors/wombat.vim
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
" Maintainer: Lars H. Nielsen (dengmao@gmail.com)
|
||||||
|
" Last Change: January 22 2007
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
|
||||||
|
hi clear
|
||||||
|
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "wombat"
|
||||||
|
|
||||||
|
|
||||||
|
" Vim >= 7.0 specific colors
|
||||||
|
if version >= 700
|
||||||
|
hi CursorLine guibg=#2d2d2d
|
||||||
|
hi CursorColumn guibg=#2d2d2d
|
||||||
|
hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold
|
||||||
|
hi Pmenu guifg=#f6f3e8 guibg=#444444
|
||||||
|
hi PmenuSel guifg=#000000 guibg=#cae682
|
||||||
|
endif
|
||||||
|
|
||||||
|
" General colors
|
||||||
|
hi Cursor guifg=NONE guibg=#656565 gui=none
|
||||||
|
hi Normal guifg=#f6f3e8 guibg=#242424 gui=none
|
||||||
|
hi NonText guifg=#808080 guibg=#303030 gui=none
|
||||||
|
hi LineNr guifg=#857b6f guibg=#000000 gui=none
|
||||||
|
hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic
|
||||||
|
hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none
|
||||||
|
hi VertSplit guifg=#444444 guibg=#444444 gui=none
|
||||||
|
hi Folded guibg=#384048 guifg=#a0a8b0 gui=none
|
||||||
|
hi Title guifg=#f6f3e8 guibg=NONE gui=bold
|
||||||
|
hi Visual guifg=#f6f3e8 guibg=#444444 gui=none
|
||||||
|
hi SpecialKey guifg=#808080 guibg=#343434 gui=none
|
||||||
|
|
||||||
|
" Syntax highlighting
|
||||||
|
hi Comment guifg=#99968b gui=italic
|
||||||
|
hi Todo guifg=#8f8f8f gui=italic
|
||||||
|
hi Constant guifg=#e5786d gui=none
|
||||||
|
hi String guifg=#95e454 gui=italic
|
||||||
|
hi Identifier guifg=#cae682 gui=none
|
||||||
|
hi Function guifg=#cae682 gui=none
|
||||||
|
hi Type guifg=#cae682 gui=none
|
||||||
|
hi Statement guifg=#8ac6f2 gui=none
|
||||||
|
hi Keyword guifg=#8ac6f2 gui=none
|
||||||
|
hi PreProc guifg=#e5786d gui=none
|
||||||
|
hi Number guifg=#e5786d gui=none
|
||||||
|
hi Special guifg=#e7f6da gui=none
|
||||||
|
|
||||||
|
|
133
vim/.vim/.vim/colors/zenburn.vim
Normal file
133
vim/.vim/.vim/colors/zenburn.vim
Normal file
|
@ -0,0 +1,133 @@
|
||||||
|
" Vim color file
|
||||||
|
" Maintainer: Jani Nurminen <jani.nurminen@intellitel.com>
|
||||||
|
" Last Change: $Id: zenburn.vim,v 1.13 2002/09/16 18:03:49 jnurmine Exp $
|
||||||
|
" URL: Not yet...
|
||||||
|
" License: GPL
|
||||||
|
"
|
||||||
|
" Nothing too fancy, just some alien fruit salad to keep you in the zone.
|
||||||
|
" This syntax file was designed to be used with dark environments and
|
||||||
|
" low light situations. Of course, if it works during a daybright office, go
|
||||||
|
" ahead :)
|
||||||
|
"
|
||||||
|
" Owes heavily to other Vim color files! With special mentions
|
||||||
|
" to "BlackDust", "Camo" and "Desert".
|
||||||
|
"
|
||||||
|
" To install, copy to ~/.vim/colors directory. Then :colorscheme zenburn.
|
||||||
|
" See also :help syntax
|
||||||
|
"
|
||||||
|
" CONFIGURABLE PARAMETERS:
|
||||||
|
"
|
||||||
|
" You can use the default (don't set any parameters), or you can
|
||||||
|
" set some parameters to tweak the Zenlook colours.
|
||||||
|
"
|
||||||
|
" * To get more contrast to the Visual selection, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Visual = 1
|
||||||
|
"
|
||||||
|
" * To use alternate colouring for Error message, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Error = 1
|
||||||
|
"
|
||||||
|
" * The new default for Include is a duller orang.e To use the original
|
||||||
|
" colouring for Include, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Include = 1
|
||||||
|
"
|
||||||
|
" * To turn the parameter(s) back to defaults, use unlet.
|
||||||
|
"
|
||||||
|
" That's it, enjoy!
|
||||||
|
"
|
||||||
|
" TODO
|
||||||
|
" - IME colouring (CursorIM)
|
||||||
|
" - obscure syntax groups: check and colourize
|
||||||
|
" - add more groups if necessary
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
let g:colors_name="zenburn"
|
||||||
|
|
||||||
|
hi Boolean guifg=#dca3a3
|
||||||
|
hi Character guifg=#dca3a3 gui=bold
|
||||||
|
hi Comment guifg=#7f9f7f
|
||||||
|
hi Conditional guifg=#f0dfaf gui=bold
|
||||||
|
hi Constant guifg=#dca3a3 gui=bold
|
||||||
|
hi Cursor guifg=#000d18 guibg=#8faf9f gui=bold
|
||||||
|
hi Debug guifg=#dca3a3 gui=bold
|
||||||
|
hi Define guifg=#ffcfaf gui=bold
|
||||||
|
hi Delimiter guifg=#8f8f8f
|
||||||
|
hi DiffAdd guifg=#709080 guibg=#313c36 gui=bold
|
||||||
|
hi DiffChange guibg=#333333
|
||||||
|
hi DiffDelete guifg=#333333 guibg=#464646
|
||||||
|
hi DiffText guifg=#ecbcbc guibg=#41363c gui=bold
|
||||||
|
hi Directory guifg=#dcdccc gui=bold
|
||||||
|
hi ErrorMsg guifg=#60b48a guibg=#3f3f3f gui=bold
|
||||||
|
hi Exception guifg=#c3bf9f gui=bold
|
||||||
|
hi Float guifg=#c0bed1
|
||||||
|
hi FoldColumn guifg=#93b3a3 guibg=#3f4040
|
||||||
|
hi Folded guifg=#93b3a3 guibg=#3f4040
|
||||||
|
hi Function guifg=#efef8f
|
||||||
|
hi Identifier guifg=#efdcbc
|
||||||
|
hi IncSearch guibg=#f8f893 guifg=#385f38
|
||||||
|
hi Keyword guifg=#f0dfaf gui=bold
|
||||||
|
hi Label guifg=#dfcfaf gui=underline
|
||||||
|
hi LineNr guifg=#7f8f8f guibg=#464646
|
||||||
|
hi Macro guifg=#ffcfaf gui=bold
|
||||||
|
hi ModeMsg guifg=#ffcfaf gui=none
|
||||||
|
hi MoreMsg guifg=#ffffff gui=bold
|
||||||
|
hi NonText guifg=#404040
|
||||||
|
hi Normal guifg=#dcdccc guibg=#3f3f3f
|
||||||
|
hi Number guifg=#8cd0d3
|
||||||
|
hi Operator guifg=#f0efd0
|
||||||
|
hi PreCondit guifg=#dfaf8f gui=bold
|
||||||
|
hi PreProc guifg=#ffcfaf gui=bold
|
||||||
|
hi Question guifg=#ffffff gui=bold
|
||||||
|
hi Repeat guifg=#ffd7a7 gui=bold
|
||||||
|
hi Search guifg=#ffffe0 guibg=#385f38
|
||||||
|
hi SpecialChar guifg=#dca3a3 gui=bold
|
||||||
|
hi SpecialComment guifg=#82a282 gui=bold
|
||||||
|
hi Special guifg=#cfbfaf
|
||||||
|
hi SpecialKey guifg=#9ece9e
|
||||||
|
hi Statement guifg=#e3ceab guibg=#3f3f3f gui=none
|
||||||
|
hi StatusLine guifg=#1e2320 guibg=#acbc90
|
||||||
|
hi StatusLineNC guifg=#2e3330 guibg=#88b090
|
||||||
|
hi StorageClass guifg=#c3bf9f gui=bold
|
||||||
|
hi String guifg=#cc9393
|
||||||
|
hi Structure guifg=#efefaf gui=bold
|
||||||
|
hi Tag guifg=#dca3a3 gui=bold
|
||||||
|
hi Title guifg=#efefef guibg=#3f3f3f gui=bold
|
||||||
|
hi Todo guifg=#7faf8f guibg=#3f3f3f gui=bold
|
||||||
|
hi Typedef guifg=#dfe4cf gui=bold
|
||||||
|
hi Type guifg=#dfdfbf gui=bold
|
||||||
|
hi Underlined guifg=#dcdccc guibg=#3f3f3f gui=underline
|
||||||
|
hi VertSplit guifg=#303030 guibg=#688060
|
||||||
|
hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline
|
||||||
|
hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold
|
||||||
|
hi WildMenu guibg=#2c302d guifg=#cbecd0 gui=underline
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Visual")
|
||||||
|
" Visual with more contrast, thanks to Steve Hall & Cream posse
|
||||||
|
hi Visual guifg=#000000 guibg=#71d3b4
|
||||||
|
else
|
||||||
|
" use default visual
|
||||||
|
hi Visual guifg=#233323 guibg=#71d3b4
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Error")
|
||||||
|
" use a bit different Error
|
||||||
|
hi Error guifg=#ef9f9f guibg=#201010 gui=bold
|
||||||
|
else
|
||||||
|
" default
|
||||||
|
hi Error guifg=#e37170 guibg=#332323 gui=none
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Include")
|
||||||
|
" original setting
|
||||||
|
hi Include guifg=#ffcfaf gui=bold
|
||||||
|
else
|
||||||
|
" new, less contrasted one
|
||||||
|
hi Include guifg=#dfaf8f gui=bold
|
||||||
|
endif
|
||||||
|
" TODO check every syntax group that they're ok
|
212
vim/.vim/colors/inkpot.vim
Normal file
212
vim/.vim/colors/inkpot.vim
Normal file
|
@ -0,0 +1,212 @@
|
||||||
|
" Vim color file
|
||||||
|
" Name: inkpot.vim
|
||||||
|
" Maintainer: Ciaran McCreesh <ciaran.mccreesh@blueyonder.co.uk>
|
||||||
|
" This should work in the GUI, rxvt-unicode (88 colour mode) and xterm (256
|
||||||
|
" colour mode). It won't work in 8/16 colour terminals.
|
||||||
|
"
|
||||||
|
" To use a black background, :let g:inkpot_black_background = 1
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "inkpot"
|
||||||
|
|
||||||
|
" map a urxvt cube number to an xterm-256 cube number
|
||||||
|
fun! <SID>M(a)
|
||||||
|
return strpart("0135", a:a, 1) + 0
|
||||||
|
endfun
|
||||||
|
|
||||||
|
" map a urxvt colour to an xterm-256 colour
|
||||||
|
fun! <SID>X(a)
|
||||||
|
if &t_Co == 88
|
||||||
|
return a:a
|
||||||
|
else
|
||||||
|
if a:a == 8
|
||||||
|
return 237
|
||||||
|
elseif a:a < 16
|
||||||
|
return a:a
|
||||||
|
elseif a:a > 79
|
||||||
|
return 232 + (3 * (a:a - 80))
|
||||||
|
else
|
||||||
|
let l:b = a:a - 16
|
||||||
|
let l:x = l:b % 4
|
||||||
|
let l:y = (l:b / 4) % 4
|
||||||
|
let l:z = (l:b / 16)
|
||||||
|
return 16 + <SID>M(l:x) + (6 * <SID>M(l:y)) + (36 * <SID>M(l:z))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
if ! exists("g:inkpot_black_background")
|
||||||
|
let g:inkpot_black_background = 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
if ! g:inkpot_black_background
|
||||||
|
hi Normal gui=NONE guifg=#cfbfad guibg=#1e1e27
|
||||||
|
else
|
||||||
|
hi Normal gui=NONE guifg=#cfbfad guibg=#000000
|
||||||
|
endif
|
||||||
|
|
||||||
|
hi IncSearch gui=BOLD guifg=#303030 guibg=#cd8b60
|
||||||
|
hi Search gui=NONE guifg=#303030 guibg=#cd8b60
|
||||||
|
hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ce4e4e
|
||||||
|
hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ce8e4e
|
||||||
|
hi ModeMsg gui=BOLD guifg=#7e7eae guibg=NONE
|
||||||
|
hi MoreMsg gui=BOLD guifg=#7e7eae guibg=NONE
|
||||||
|
hi Question gui=BOLD guifg=#ffcd00 guibg=NONE
|
||||||
|
|
||||||
|
hi StatusLine gui=BOLD guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
hi User1 gui=BOLD guifg=#00ff8b guibg=#3e3e5e
|
||||||
|
hi User2 gui=BOLD guifg=#7070a0 guibg=#3e3e5e
|
||||||
|
hi StatusLineNC gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
hi VertSplit gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
|
||||||
|
hi WildMenu gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
|
||||||
|
hi MBENormal guifg=#cfbfad guibg=#2e2e3f
|
||||||
|
hi MBEChanged guifg=#eeeeee guibg=#2e2e3f
|
||||||
|
hi MBEVisibleNormal guifg=#cfcfcd guibg=#4e4e8f
|
||||||
|
hi MBEVisibleChanged guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
|
||||||
|
hi DiffText gui=NONE guifg=#ffffcd guibg=#4a2a4a
|
||||||
|
hi DiffChange gui=NONE guifg=#ffffcd guibg=#306b8f
|
||||||
|
hi DiffDelete gui=NONE guifg=#ffffcd guibg=#6d3030
|
||||||
|
hi DiffAdd gui=NONE guifg=#ffffcd guibg=#306d30
|
||||||
|
|
||||||
|
hi Cursor gui=NONE guifg=#404040 guibg=#8b8bff
|
||||||
|
hi lCursor gui=NONE guifg=#404040 guibg=#8fff8b
|
||||||
|
hi CursorIM gui=NONE guifg=#404040 guibg=#8b8bff
|
||||||
|
|
||||||
|
hi Folded gui=NONE guifg=#cfcfcd guibg=#4b208f
|
||||||
|
hi FoldColumn gui=NONE guifg=#8b8bcd guibg=#2e2e2e
|
||||||
|
|
||||||
|
hi Directory gui=NONE guifg=#00ff8b guibg=NONE
|
||||||
|
hi LineNr gui=NONE guifg=#8b8bcd guibg=#2e2e2e
|
||||||
|
hi NonText gui=BOLD guifg=#8b8bcd guibg=NONE
|
||||||
|
hi SpecialKey gui=BOLD guifg=#ab60ed guibg=NONE
|
||||||
|
hi Title gui=BOLD guifg=#af4f4b guibg=NONE
|
||||||
|
hi Visual gui=NONE guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
|
||||||
|
hi Comment gui=NONE guifg=#cd8b00 guibg=NONE
|
||||||
|
hi Constant gui=NONE guifg=#ffcd8b guibg=NONE
|
||||||
|
hi String gui=NONE guifg=#ffcd8b guibg=#404040
|
||||||
|
hi Error gui=NONE guifg=#ffffff guibg=#6e2e2e
|
||||||
|
hi Identifier gui=NONE guifg=#ff8bff guibg=NONE
|
||||||
|
hi Ignore gui=NONE
|
||||||
|
hi Number gui=NONE guifg=#f0ad6d guibg=NONE
|
||||||
|
hi PreProc gui=NONE guifg=#409090 guibg=NONE
|
||||||
|
hi Special gui=NONE guifg=#c080d0 guibg=NONE
|
||||||
|
hi SpecialChar gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi Statement gui=NONE guifg=#808bed guibg=NONE
|
||||||
|
hi Todo gui=BOLD guifg=#303030 guibg=#d0a060
|
||||||
|
hi Type gui=NONE guifg=#ff8bff guibg=NONE
|
||||||
|
hi Underlined gui=BOLD guifg=#df9f2d guibg=NONE
|
||||||
|
hi TaglistTagName gui=BOLD guifg=#808bed guibg=NONE
|
||||||
|
|
||||||
|
hi perlSpecialMatch gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi perlSpecialString gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
|
||||||
|
hi cSpecialCharacter gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi cFormat gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
|
||||||
|
hi doxygenBrief gui=NONE guifg=#fdab60 guibg=NONE
|
||||||
|
hi doxygenParam gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenPrev gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenSmallSpecial gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenSpecial gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenComment gui=NONE guifg=#ad7b20 guibg=NONE
|
||||||
|
hi doxygenSpecial gui=NONE guifg=#fdab60 guibg=NONE
|
||||||
|
hi doxygenSpecialMultilineDesc gui=NONE guifg=#ad600b guibg=NONE
|
||||||
|
hi doxygenSpecialOnelineDesc gui=NONE guifg=#ad600b guibg=NONE
|
||||||
|
|
||||||
|
if v:version >= 700
|
||||||
|
hi Pmenu gui=NONE guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
hi PmenuSel gui=BOLD guifg=#eeeeee guibg=#2e2e3f
|
||||||
|
hi PmenuSbar gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
hi PmenuThumb gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
|
||||||
|
hi SpellBad gui=undercurl guisp=#cc6666
|
||||||
|
hi SpellRare gui=undercurl guisp=#cc66cc
|
||||||
|
hi SpellLocal gui=undercurl guisp=#cccc66
|
||||||
|
hi SpellCap gui=undercurl guisp=#66cccc
|
||||||
|
|
||||||
|
hi MatchParen gui=NONE guifg=#404040 guibg=#8fff8b
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
if ! g:inkpot_black_background
|
||||||
|
exec "hi Normal cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(80)
|
||||||
|
else
|
||||||
|
exec "hi Normal cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(16)
|
||||||
|
endif
|
||||||
|
|
||||||
|
exec "hi IncSearch cterm=BOLD ctermfg=" . <SID>X(80) . " ctermbg=" . <SID>X(73)
|
||||||
|
exec "hi Search cterm=NONE ctermfg=" . <SID>X(80) . " ctermbg=" . <SID>X(73)
|
||||||
|
exec "hi ErrorMsg cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(48)
|
||||||
|
exec "hi WarningMsg cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(68)
|
||||||
|
exec "hi ModeMsg cterm=BOLD ctermfg=" . <SID>X(38) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi MoreMsg cterm=BOLD ctermfg=" . <SID>X(38) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Question cterm=BOLD ctermfg=" . <SID>X(52) . " ctermbg=" . "NONE"
|
||||||
|
|
||||||
|
exec "hi StatusLine cterm=BOLD ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi User1 cterm=BOLD ctermfg=" . <SID>X(28) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi User2 cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi StatusLineNC cterm=NONE ctermfg=" . <SID>X(84) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi VertSplit cterm=NONE ctermfg=" . <SID>X(84) . " ctermbg=" . <SID>X(81)
|
||||||
|
|
||||||
|
exec "hi WildMenu cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(38)
|
||||||
|
|
||||||
|
exec "hi MBENormal ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi MBEChanged ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi MBEVisibleNormal ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(82)
|
||||||
|
exec "hi MBEVisibleChanged ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(82)
|
||||||
|
|
||||||
|
exec "hi DiffText cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(34)
|
||||||
|
exec "hi DiffChange cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(17)
|
||||||
|
exec "hi DiffDelete cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi DiffAdd cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(20)
|
||||||
|
|
||||||
|
exec "hi Folded cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(35)
|
||||||
|
exec "hi FoldColumn cterm=NONE ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(80)
|
||||||
|
|
||||||
|
exec "hi Directory cterm=NONE ctermfg=" . <SID>X(28) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi LineNr cterm=NONE ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(80)
|
||||||
|
exec "hi NonText cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi SpecialKey cterm=BOLD ctermfg=" . <SID>X(55) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Title cterm=BOLD ctermfg=" . <SID>X(48) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Visual cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(38)
|
||||||
|
|
||||||
|
exec "hi Comment cterm=NONE ctermfg=" . <SID>X(52) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Constant cterm=NONE ctermfg=" . <SID>X(73) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi String cterm=NONE ctermfg=" . <SID>X(73) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi Error cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi Identifier cterm=NONE ctermfg=" . <SID>X(53) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Ignore cterm=NONE"
|
||||||
|
exec "hi Number cterm=NONE ctermfg=" . <SID>X(69) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi PreProc cterm=NONE ctermfg=" . <SID>X(25) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Special cterm=NONE ctermfg=" . <SID>X(55) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi SpecialChar cterm=NONE ctermfg=" . <SID>X(55) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi Statement cterm=NONE ctermfg=" . <SID>X(27) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Todo cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(57)
|
||||||
|
exec "hi Type cterm=NONE ctermfg=" . <SID>X(71) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Underlined cterm=BOLD ctermfg=" . <SID>X(77) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi TaglistTagName cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . "NONE"
|
||||||
|
|
||||||
|
if v:version >= 700
|
||||||
|
exec "hi Pmenu cterm=NONE ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(82)
|
||||||
|
exec "hi PmenuSel cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(38)
|
||||||
|
exec "hi PmenuSbar cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(39)
|
||||||
|
exec "hi PmenuThumb cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(39)
|
||||||
|
|
||||||
|
exec "hi SpellBad cterm=NONE ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi SpellRare cterm=NONE ctermbg=" . <SID>X(33)
|
||||||
|
exec "hi SpellLocal cterm=NONE ctermbg=" . <SID>X(36)
|
||||||
|
exec "hi SpellCap cterm=NONE ctermbg=" . <SID>X(21)
|
||||||
|
exec "hi MatchParen cterm=NONE ctermbg=" . <SID>X(14) . "ctermfg=" . <SID>X(25)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" vim: set et :
|
172
vim/.vim/colors/vividchalk.vim
Normal file
172
vim/.vim/colors/vividchalk.vim
Normal file
|
@ -0,0 +1,172 @@
|
||||||
|
" Vim color scheme
|
||||||
|
" Name: vividchalk.vim
|
||||||
|
" Author: Tim Pope <vimNOSPAM@tpope.info>
|
||||||
|
" GetLatestVimScripts: 1891 1 :AutoInstall: vividchalk.vim
|
||||||
|
" $Id: vividchalk.vim,v 1.8 2007-07-11 18:50:16 tpope Exp $
|
||||||
|
|
||||||
|
" Based on the Vibrank Ink theme for TextMate
|
||||||
|
" Distributable under the same terms as Vim itself (see :help license)
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
set background=dark
|
||||||
|
endif
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "vividchalk"
|
||||||
|
|
||||||
|
" First two functions adapted from inkpot.vim
|
||||||
|
|
||||||
|
" map a urxvt cube number to an xterm-256 cube number
|
||||||
|
fun! s:M(a)
|
||||||
|
return strpart("0245", a:a, 1) + 0
|
||||||
|
endfun
|
||||||
|
|
||||||
|
" map a urxvt colour to an xterm-256 colour
|
||||||
|
fun! s:X(a)
|
||||||
|
if &t_Co == 88
|
||||||
|
return a:a
|
||||||
|
else
|
||||||
|
if a:a == 8
|
||||||
|
return 237
|
||||||
|
elseif a:a < 16
|
||||||
|
return a:a
|
||||||
|
elseif a:a > 79
|
||||||
|
return 232 + (3 * (a:a - 80))
|
||||||
|
else
|
||||||
|
let l:b = a:a - 16
|
||||||
|
let l:x = l:b % 4
|
||||||
|
let l:y = (l:b / 4) % 4
|
||||||
|
let l:z = (l:b / 16)
|
||||||
|
return 16 + s:M(l:x) + (6 * s:M(l:y)) + (36 * s:M(l:z))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
function! E2T(a)
|
||||||
|
return s:X(a:a)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:choose(mediocre,good)
|
||||||
|
if &t_Co != 88 && &t_Co != 256
|
||||||
|
return a:mediocre
|
||||||
|
else
|
||||||
|
return s:X(a:good)
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:hifg(group,guifg,first,second,...)
|
||||||
|
if a:0 && &t_Co == 256
|
||||||
|
let ctermfg = a:1
|
||||||
|
else
|
||||||
|
let ctermfg = s:choose(a:first,a:second)
|
||||||
|
endif
|
||||||
|
exe "highlight ".a:group." guifg=".a:guifg." ctermfg=".ctermfg
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:hibg(group,guibg,first,second)
|
||||||
|
let ctermbg = s:choose(a:first,a:second)
|
||||||
|
exe "highlight ".a:group." guibg=".a:guibg." ctermbg=".ctermbg
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
hi link railsMethod PreProc
|
||||||
|
hi link rubyDefine Keyword
|
||||||
|
hi link rubySymbol Constant
|
||||||
|
hi link rubyAccess rubyMethod
|
||||||
|
hi link rubyAttribute rubyMethod
|
||||||
|
hi link rubyEval rubyMethod
|
||||||
|
hi link rubyException rubyMethod
|
||||||
|
hi link rubyInclude rubyMethod
|
||||||
|
hi link rubyStringDelimiter rubyString
|
||||||
|
hi link rubyRegexp Regexp
|
||||||
|
hi link rubyRegexpDelimiter rubyRegexp
|
||||||
|
"hi link rubyConstant Variable
|
||||||
|
"hi link rubyGlobalVariable Variable
|
||||||
|
"hi link rubyClassVariable Variable
|
||||||
|
"hi link rubyInstanceVariable Variable
|
||||||
|
hi link javascriptRegexpString Regexp
|
||||||
|
hi link javascriptNumber Number
|
||||||
|
hi link javascriptNull Constant
|
||||||
|
|
||||||
|
call s:hifg("Normal","#EEEEEE","White",87)
|
||||||
|
if &background == "light" || has("gui_running")
|
||||||
|
hi Normal guibg=Black ctermbg=Black
|
||||||
|
else
|
||||||
|
hi Normal guibg=Black ctermbg=NONE
|
||||||
|
endif
|
||||||
|
highlight StatusLine guifg=Black guibg=#aabbee gui=bold ctermfg=Black ctermbg=White cterm=bold
|
||||||
|
highlight StatusLineNC guifg=#444444 guibg=#aaaaaa gui=none ctermfg=Black ctermbg=Grey cterm=none
|
||||||
|
"if &t_Co == 256
|
||||||
|
"highlight StatusLine ctermbg=117
|
||||||
|
"else
|
||||||
|
"highlight StatusLine ctermbg=43
|
||||||
|
"endif
|
||||||
|
highlight WildMenu guifg=Black guibg=#ffff00 gui=bold ctermfg=Black ctermbg=Yellow cterm=bold
|
||||||
|
highlight Cursor guifg=Black guibg=White ctermfg=Black ctermbg=White
|
||||||
|
highlight CursorLine guibg=#333333 guifg=NONE
|
||||||
|
highlight CursorColumn guibg=#333333 guifg=NONE
|
||||||
|
highlight NonText guifg=#404040 ctermfg=8
|
||||||
|
highlight SpecialKey guifg=#404040 ctermfg=8
|
||||||
|
highlight Directory none
|
||||||
|
high link Directory Identifier
|
||||||
|
highlight ErrorMsg guibg=Red ctermbg=DarkRed guifg=NONE ctermfg=NONE
|
||||||
|
highlight Search guifg=NONE ctermfg=NONE gui=none cterm=none
|
||||||
|
call s:hibg("Search" ,"#555555","Black",81)
|
||||||
|
highlight IncSearch guifg=White guibg=Black ctermfg=White ctermbg=Black
|
||||||
|
highlight MoreMsg guifg=#00AA00 ctermfg=Green
|
||||||
|
highlight LineNr guifg=#DDEEFF ctermfg=White
|
||||||
|
call s:hibg("LineNr" ,"#222222","DarkBlue",80)
|
||||||
|
highlight Question none
|
||||||
|
high link Question MoreMsg
|
||||||
|
highlight Title guifg=Magenta ctermfg=Magenta
|
||||||
|
highlight VisualNOS gui=none cterm=none
|
||||||
|
call s:hibg("Visual" ,"#555577","LightBlue",83)
|
||||||
|
call s:hibg("VisualNOS" ,"#444444","DarkBlue",81)
|
||||||
|
highlight WarningMsg guifg=Red ctermfg=Red
|
||||||
|
highlight Folded guibg=#1100aa ctermbg=DarkBlue
|
||||||
|
call s:hibg("Folded" ,"#110077","DarkBlue",17)
|
||||||
|
call s:hifg("Folded" ,"#aaddee","LightCyan",63)
|
||||||
|
highlight FoldColumn none
|
||||||
|
high link FoldColumn Folded
|
||||||
|
highlight Pmenu guifg=White ctermfg=White gui=bold cterm=bold
|
||||||
|
highlight PmenuSel guifg=White ctermfg=White gui=bold cterm=bold
|
||||||
|
call s:hibg("Pmenu" ,"#000099","Blue",18)
|
||||||
|
call s:hibg("PmenuSel" ,"#5555ff","DarkCyan",39)
|
||||||
|
highlight PmenuSbar guibg=Grey ctermbg=Grey
|
||||||
|
highlight PmenuThumb guibg=White ctermbg=White
|
||||||
|
highlight TabLine gui=underline cterm=underline
|
||||||
|
call s:hifg("TabLine" ,"#bbbbbb","LightGrey",85)
|
||||||
|
call s:hibg("TabLine" ,"#333333","DarkGrey",80)
|
||||||
|
highlight TabLineSel guifg=White guibg=Black ctermfg=White ctermbg=Black
|
||||||
|
highlight TabLineFill gui=underline cterm=underline
|
||||||
|
call s:hifg("TabLineFill","#bbbbbb","LightGrey",85)
|
||||||
|
call s:hibg("TabLineFill","#808080","Grey",83)
|
||||||
|
|
||||||
|
hi Type gui=none
|
||||||
|
hi Statement gui=none
|
||||||
|
if !has("gui_mac")
|
||||||
|
" Mac GUI degrades italics to ugly underlining.
|
||||||
|
hi Comment gui=italic
|
||||||
|
hi railsUserClass gui=italic
|
||||||
|
hi railsUserMethod gui=italic
|
||||||
|
endif
|
||||||
|
hi Identifier cterm=none
|
||||||
|
" Commented numbers at the end are *old* 256 color values
|
||||||
|
"highlight PreProc guifg=#EDF8F9
|
||||||
|
call s:hifg("Comment" ,"#9933CC","DarkMagenta",34) " 92
|
||||||
|
" 26 instead?
|
||||||
|
call s:hifg("Constant" ,"#339999","DarkCyan",21) " 30
|
||||||
|
call s:hifg("rubyNumber" ,"#CCFF33","Yellow",60) " 190
|
||||||
|
call s:hifg("String" ,"#66FF00","LightGreen",44,82) " 82
|
||||||
|
call s:hifg("Identifier" ,"#FFCC00","Yellow",72) " 220
|
||||||
|
call s:hifg("Statement" ,"#FF6600","Brown",68) " 202
|
||||||
|
call s:hifg("PreProc" ,"#AAFFFF","LightCyan",47) " 213
|
||||||
|
call s:hifg("railsUserMethod","#AACCFF","LightCyan",27)
|
||||||
|
call s:hifg("Type" ,"#AAAA77","Grey",57) " 101
|
||||||
|
call s:hifg("railsUserClass" ,"#AAAAAA","Grey",7) " 101
|
||||||
|
call s:hifg("Special" ,"#33AA00","DarkGreen",24) " 7
|
||||||
|
call s:hifg("Regexp" ,"#44B4CC","DarkCyan",21) " 74
|
||||||
|
call s:hifg("rubyMethod" ,"#DDE93D","Yellow",77) " 191
|
||||||
|
"highlight railsMethod guifg=#EE1122 ctermfg=1
|
51
vim/.vim/colors/wombat.vim
Normal file
51
vim/.vim/colors/wombat.vim
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
" Maintainer: Lars H. Nielsen (dengmao@gmail.com)
|
||||||
|
" Last Change: January 22 2007
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
|
||||||
|
hi clear
|
||||||
|
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "wombat"
|
||||||
|
|
||||||
|
|
||||||
|
" Vim >= 7.0 specific colors
|
||||||
|
if version >= 700
|
||||||
|
hi CursorLine guibg=#2d2d2d
|
||||||
|
hi CursorColumn guibg=#2d2d2d
|
||||||
|
hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold
|
||||||
|
hi Pmenu guifg=#f6f3e8 guibg=#444444
|
||||||
|
hi PmenuSel guifg=#000000 guibg=#cae682
|
||||||
|
endif
|
||||||
|
|
||||||
|
" General colors
|
||||||
|
hi Cursor guifg=NONE guibg=#656565 gui=none
|
||||||
|
hi Normal guifg=#f6f3e8 guibg=#242424 gui=none
|
||||||
|
hi NonText guifg=#808080 guibg=#303030 gui=none
|
||||||
|
hi LineNr guifg=#857b6f guibg=#000000 gui=none
|
||||||
|
hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic
|
||||||
|
hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none
|
||||||
|
hi VertSplit guifg=#444444 guibg=#444444 gui=none
|
||||||
|
hi Folded guibg=#384048 guifg=#a0a8b0 gui=none
|
||||||
|
hi Title guifg=#f6f3e8 guibg=NONE gui=bold
|
||||||
|
hi Visual guifg=#f6f3e8 guibg=#444444 gui=none
|
||||||
|
hi SpecialKey guifg=#808080 guibg=#343434 gui=none
|
||||||
|
|
||||||
|
" Syntax highlighting
|
||||||
|
hi Comment guifg=#99968b gui=italic
|
||||||
|
hi Todo guifg=#8f8f8f gui=italic
|
||||||
|
hi Constant guifg=#e5786d gui=none
|
||||||
|
hi String guifg=#95e454 gui=italic
|
||||||
|
hi Identifier guifg=#cae682 gui=none
|
||||||
|
hi Function guifg=#cae682 gui=none
|
||||||
|
hi Type guifg=#cae682 gui=none
|
||||||
|
hi Statement guifg=#8ac6f2 gui=none
|
||||||
|
hi Keyword guifg=#8ac6f2 gui=none
|
||||||
|
hi PreProc guifg=#e5786d gui=none
|
||||||
|
hi Number guifg=#e5786d gui=none
|
||||||
|
hi Special guifg=#e7f6da gui=none
|
||||||
|
|
||||||
|
|
133
vim/.vim/colors/zenburn.vim
Normal file
133
vim/.vim/colors/zenburn.vim
Normal file
|
@ -0,0 +1,133 @@
|
||||||
|
" Vim color file
|
||||||
|
" Maintainer: Jani Nurminen <jani.nurminen@intellitel.com>
|
||||||
|
" Last Change: $Id: zenburn.vim,v 1.13 2002/09/16 18:03:49 jnurmine Exp $
|
||||||
|
" URL: Not yet...
|
||||||
|
" License: GPL
|
||||||
|
"
|
||||||
|
" Nothing too fancy, just some alien fruit salad to keep you in the zone.
|
||||||
|
" This syntax file was designed to be used with dark environments and
|
||||||
|
" low light situations. Of course, if it works during a daybright office, go
|
||||||
|
" ahead :)
|
||||||
|
"
|
||||||
|
" Owes heavily to other Vim color files! With special mentions
|
||||||
|
" to "BlackDust", "Camo" and "Desert".
|
||||||
|
"
|
||||||
|
" To install, copy to ~/.vim/colors directory. Then :colorscheme zenburn.
|
||||||
|
" See also :help syntax
|
||||||
|
"
|
||||||
|
" CONFIGURABLE PARAMETERS:
|
||||||
|
"
|
||||||
|
" You can use the default (don't set any parameters), or you can
|
||||||
|
" set some parameters to tweak the Zenlook colours.
|
||||||
|
"
|
||||||
|
" * To get more contrast to the Visual selection, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Visual = 1
|
||||||
|
"
|
||||||
|
" * To use alternate colouring for Error message, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Error = 1
|
||||||
|
"
|
||||||
|
" * The new default for Include is a duller orang.e To use the original
|
||||||
|
" colouring for Include, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Include = 1
|
||||||
|
"
|
||||||
|
" * To turn the parameter(s) back to defaults, use unlet.
|
||||||
|
"
|
||||||
|
" That's it, enjoy!
|
||||||
|
"
|
||||||
|
" TODO
|
||||||
|
" - IME colouring (CursorIM)
|
||||||
|
" - obscure syntax groups: check and colourize
|
||||||
|
" - add more groups if necessary
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
let g:colors_name="zenburn"
|
||||||
|
|
||||||
|
hi Boolean guifg=#dca3a3
|
||||||
|
hi Character guifg=#dca3a3 gui=bold
|
||||||
|
hi Comment guifg=#7f9f7f
|
||||||
|
hi Conditional guifg=#f0dfaf gui=bold
|
||||||
|
hi Constant guifg=#dca3a3 gui=bold
|
||||||
|
hi Cursor guifg=#000d18 guibg=#8faf9f gui=bold
|
||||||
|
hi Debug guifg=#dca3a3 gui=bold
|
||||||
|
hi Define guifg=#ffcfaf gui=bold
|
||||||
|
hi Delimiter guifg=#8f8f8f
|
||||||
|
hi DiffAdd guifg=#709080 guibg=#313c36 gui=bold
|
||||||
|
hi DiffChange guibg=#333333
|
||||||
|
hi DiffDelete guifg=#333333 guibg=#464646
|
||||||
|
hi DiffText guifg=#ecbcbc guibg=#41363c gui=bold
|
||||||
|
hi Directory guifg=#dcdccc gui=bold
|
||||||
|
hi ErrorMsg guifg=#60b48a guibg=#3f3f3f gui=bold
|
||||||
|
hi Exception guifg=#c3bf9f gui=bold
|
||||||
|
hi Float guifg=#c0bed1
|
||||||
|
hi FoldColumn guifg=#93b3a3 guibg=#3f4040
|
||||||
|
hi Folded guifg=#93b3a3 guibg=#3f4040
|
||||||
|
hi Function guifg=#efef8f
|
||||||
|
hi Identifier guifg=#efdcbc
|
||||||
|
hi IncSearch guibg=#f8f893 guifg=#385f38
|
||||||
|
hi Keyword guifg=#f0dfaf gui=bold
|
||||||
|
hi Label guifg=#dfcfaf gui=underline
|
||||||
|
hi LineNr guifg=#7f8f8f guibg=#464646
|
||||||
|
hi Macro guifg=#ffcfaf gui=bold
|
||||||
|
hi ModeMsg guifg=#ffcfaf gui=none
|
||||||
|
hi MoreMsg guifg=#ffffff gui=bold
|
||||||
|
hi NonText guifg=#404040
|
||||||
|
hi Normal guifg=#dcdccc guibg=#3f3f3f
|
||||||
|
hi Number guifg=#8cd0d3
|
||||||
|
hi Operator guifg=#f0efd0
|
||||||
|
hi PreCondit guifg=#dfaf8f gui=bold
|
||||||
|
hi PreProc guifg=#ffcfaf gui=bold
|
||||||
|
hi Question guifg=#ffffff gui=bold
|
||||||
|
hi Repeat guifg=#ffd7a7 gui=bold
|
||||||
|
hi Search guifg=#ffffe0 guibg=#385f38
|
||||||
|
hi SpecialChar guifg=#dca3a3 gui=bold
|
||||||
|
hi SpecialComment guifg=#82a282 gui=bold
|
||||||
|
hi Special guifg=#cfbfaf
|
||||||
|
hi SpecialKey guifg=#9ece9e
|
||||||
|
hi Statement guifg=#e3ceab guibg=#3f3f3f gui=none
|
||||||
|
hi StatusLine guifg=#1e2320 guibg=#acbc90
|
||||||
|
hi StatusLineNC guifg=#2e3330 guibg=#88b090
|
||||||
|
hi StorageClass guifg=#c3bf9f gui=bold
|
||||||
|
hi String guifg=#cc9393
|
||||||
|
hi Structure guifg=#efefaf gui=bold
|
||||||
|
hi Tag guifg=#dca3a3 gui=bold
|
||||||
|
hi Title guifg=#efefef guibg=#3f3f3f gui=bold
|
||||||
|
hi Todo guifg=#7faf8f guibg=#3f3f3f gui=bold
|
||||||
|
hi Typedef guifg=#dfe4cf gui=bold
|
||||||
|
hi Type guifg=#dfdfbf gui=bold
|
||||||
|
hi Underlined guifg=#dcdccc guibg=#3f3f3f gui=underline
|
||||||
|
hi VertSplit guifg=#303030 guibg=#688060
|
||||||
|
hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline
|
||||||
|
hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold
|
||||||
|
hi WildMenu guibg=#2c302d guifg=#cbecd0 gui=underline
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Visual")
|
||||||
|
" Visual with more contrast, thanks to Steve Hall & Cream posse
|
||||||
|
hi Visual guifg=#000000 guibg=#71d3b4
|
||||||
|
else
|
||||||
|
" use default visual
|
||||||
|
hi Visual guifg=#233323 guibg=#71d3b4
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Error")
|
||||||
|
" use a bit different Error
|
||||||
|
hi Error guifg=#ef9f9f guibg=#201010 gui=bold
|
||||||
|
else
|
||||||
|
" default
|
||||||
|
hi Error guifg=#e37170 guibg=#332323 gui=none
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Include")
|
||||||
|
" original setting
|
||||||
|
hi Include guifg=#ffcfaf gui=bold
|
||||||
|
else
|
||||||
|
" new, less contrasted one
|
||||||
|
hi Include guifg=#dfaf8f gui=bold
|
||||||
|
endif
|
||||||
|
" TODO check every syntax group that they're ok
|
304
vim/.vim/syntax/python.vim
Normal file
304
vim/.vim/syntax/python.vim
Normal file
|
@ -0,0 +1,304 @@
|
||||||
|
" Vim syntax file
|
||||||
|
" Language: Python
|
||||||
|
" Maintainer: Dmitry Vasiliev <dima@hlabs.spb.ru>
|
||||||
|
" URL: http://www.hlabs.spb.ru/vim/python.vim
|
||||||
|
" Last Change: $Date: 2007-02-04 16:43:14 +0300 (Вс, 04 фев 2007) $
|
||||||
|
" Filenames: *.py
|
||||||
|
" Version: 2.5.6
|
||||||
|
" $Rev: 632 $
|
||||||
|
"
|
||||||
|
" Based on python.vim (from Vim 6.1 distribution)
|
||||||
|
" by Neil Schemenauer <nas@python.ca>
|
||||||
|
"
|
||||||
|
" Thanks:
|
||||||
|
"
|
||||||
|
" Jeroen Ruigrok van der Werven
|
||||||
|
" for the idea of highlighting for erroneous operators
|
||||||
|
" Pedro Algarvio
|
||||||
|
" for the patch to enable spell checking only for the right spots
|
||||||
|
" (strings and comments)
|
||||||
|
|
||||||
|
"
|
||||||
|
" Options:
|
||||||
|
"
|
||||||
|
" For set option do: let OPTION_NAME = 1
|
||||||
|
" For clear option do: let OPTION_NAME = 0
|
||||||
|
"
|
||||||
|
" Option names:
|
||||||
|
"
|
||||||
|
" For highlight builtin functions:
|
||||||
|
" python_highlight_builtins
|
||||||
|
"
|
||||||
|
" For highlight standard exceptions:
|
||||||
|
" python_highlight_exceptions
|
||||||
|
"
|
||||||
|
" For highlight string formatting:
|
||||||
|
" python_highlight_string_formatting
|
||||||
|
"
|
||||||
|
" For highlight indentation errors:
|
||||||
|
" python_highlight_indent_errors
|
||||||
|
"
|
||||||
|
" For highlight trailing spaces:
|
||||||
|
" python_highlight_space_errors
|
||||||
|
"
|
||||||
|
" For highlight doc-tests:
|
||||||
|
" python_highlight_doctests
|
||||||
|
"
|
||||||
|
" If you want all possible Python highlighting:
|
||||||
|
" (This option not override previously set options)
|
||||||
|
" python_highlight_all
|
||||||
|
"
|
||||||
|
" For fast machines:
|
||||||
|
" python_slow_sync
|
||||||
|
"
|
||||||
|
|
||||||
|
" For version 5.x: Clear all syntax items
|
||||||
|
" For version 6.x: Quit when a syntax file was already loaded
|
||||||
|
if version < 600
|
||||||
|
syntax clear
|
||||||
|
elseif exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("python_highlight_all") && python_highlight_all != 0
|
||||||
|
" Not override previously set options
|
||||||
|
if !exists("python_highlight_builtins")
|
||||||
|
let python_highlight_builtins = 1
|
||||||
|
endif
|
||||||
|
if !exists("python_highlight_exceptions")
|
||||||
|
let python_highlight_exceptions = 1
|
||||||
|
endif
|
||||||
|
if !exists("python_highlight_string_formatting")
|
||||||
|
let python_highlight_string_formatting = 1
|
||||||
|
endif
|
||||||
|
if !exists("python_highlight_indent_errors")
|
||||||
|
let python_highlight_indent_errors = 1
|
||||||
|
endif
|
||||||
|
if !exists("python_highlight_space_errors")
|
||||||
|
let python_highlight_space_errors = 1
|
||||||
|
endif
|
||||||
|
if !exists("python_highlight_doctests")
|
||||||
|
let python_highlight_doctests = 1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Keywords
|
||||||
|
syn keyword pythonStatement break continue del
|
||||||
|
syn keyword pythonStatement exec return
|
||||||
|
syn keyword pythonStatement pass print raise
|
||||||
|
syn keyword pythonStatement global assert
|
||||||
|
syn keyword pythonStatement lambda yield
|
||||||
|
syn keyword pythonStatement with
|
||||||
|
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
|
||||||
|
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
|
||||||
|
syn keyword pythonRepeat for while
|
||||||
|
syn keyword pythonConditional if elif else
|
||||||
|
syn keyword pythonImport import from as
|
||||||
|
syn keyword pythonException try except finally
|
||||||
|
syn keyword pythonOperator and in is not or
|
||||||
|
|
||||||
|
" Decorators (new in Python 2.4)
|
||||||
|
syn match pythonDecorator "@" display nextgroup=pythonFunction skipwhite
|
||||||
|
|
||||||
|
" Comments
|
||||||
|
syn match pythonComment "#.*$" display contains=pythonTodo,@Spell
|
||||||
|
syn match pythonRun "\%^#!.*$"
|
||||||
|
syn match pythonCoding "\%^.*\(\n.*\)\?#.*coding[:=]\s*[0-9A-Za-z-_.]\+.*$"
|
||||||
|
syn keyword pythonTodo TODO FIXME XXX contained
|
||||||
|
|
||||||
|
" Errors
|
||||||
|
syn match pythonError "\<\d\+\D\+\>" display
|
||||||
|
syn match pythonError "[$?]" display
|
||||||
|
syn match pythonError "[-+&|]\{2,}" display
|
||||||
|
syn match pythonError "[=]\{3,}" display
|
||||||
|
|
||||||
|
" TODO: Mixing spaces and tabs also may be used for pretty formatting multiline
|
||||||
|
" statements. For now I don't know how to work around this.
|
||||||
|
if exists("python_highlight_indent_errors") && python_highlight_indent_errors != 0
|
||||||
|
syn match pythonIndentError "^\s*\( \t\|\t \)\s*\S"me=e-1 display
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Trailing space errors
|
||||||
|
if exists("python_highlight_space_errors") && python_highlight_space_errors != 0
|
||||||
|
syn match pythonSpaceError "\s\+$" display
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Strings
|
||||||
|
syn region pythonString start=+'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonEscape,pythonEscapeError,@Spell
|
||||||
|
syn region pythonString start=+"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonEscape,pythonEscapeError,@Spell
|
||||||
|
syn region pythonString start=+"""+ end=+"""+ keepend contains=pythonEscape,pythonEscapeError,pythonDocTest2,pythonSpaceError,@Spell
|
||||||
|
syn region pythonString start=+'''+ end=+'''+ keepend contains=pythonEscape,pythonEscapeError,pythonDocTest,pythonSpaceError,@Spell
|
||||||
|
|
||||||
|
syn match pythonEscape +\\[abfnrtv'"\\]+ display contained
|
||||||
|
syn match pythonEscape "\\\o\o\=\o\=" display contained
|
||||||
|
syn match pythonEscapeError "\\\o\{,2}[89]" display contained
|
||||||
|
syn match pythonEscape "\\x\x\{2}" display contained
|
||||||
|
syn match pythonEscapeError "\\x\x\=\X" display contained
|
||||||
|
syn match pythonEscape "\\$"
|
||||||
|
|
||||||
|
" Unicode strings
|
||||||
|
syn region pythonUniString start=+[uU]'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonEscape,pythonUniEscape,pythonEscapeError,pythonUniEscapeError,@Spell
|
||||||
|
syn region pythonUniString start=+[uU]"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonEscape,pythonUniEscape,pythonEscapeError,pythonUniEscapeError,@Spell
|
||||||
|
syn region pythonUniString start=+[uU]"""+ end=+"""+ keepend contains=pythonEscape,pythonUniEscape,pythonEscapeError,pythonUniEscapeError,pythonDocTest2,pythonSpaceError,@Spell
|
||||||
|
syn region pythonUniString start=+[uU]'''+ end=+'''+ keepend contains=pythonEscape,pythonUniEscape,pythonEscapeError,pythonUniEscapeError,pythonDocTest,pythonSpaceError,@Spell
|
||||||
|
|
||||||
|
syn match pythonUniEscape "\\u\x\{4}" display contained
|
||||||
|
syn match pythonUniEscapeError "\\u\x\{,3}\X" display contained
|
||||||
|
syn match pythonUniEscape "\\U\x\{8}" display contained
|
||||||
|
syn match pythonUniEscapeError "\\U\x\{,7}\X" display contained
|
||||||
|
syn match pythonUniEscape "\\N{[A-Z ]\+}" display contained
|
||||||
|
syn match pythonUniEscapeError "\\N{[^A-Z ]\+}" display contained
|
||||||
|
|
||||||
|
" Raw strings
|
||||||
|
syn region pythonRawString start=+[rR]'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonRawEscape,@Spell
|
||||||
|
syn region pythonRawString start=+[rR]"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonRawEscape,@Spell
|
||||||
|
syn region pythonRawString start=+[rR]"""+ end=+"""+ keepend contains=pythonDocTest2,pythonSpaceError,@Spell
|
||||||
|
syn region pythonRawString start=+[rR]'''+ end=+'''+ keepend contains=pythonDocTest,pythonSpaceError,@Spell
|
||||||
|
|
||||||
|
syn match pythonRawEscape +\\['"]+ display transparent contained
|
||||||
|
|
||||||
|
" Unicode raw strings
|
||||||
|
syn region pythonUniRawString start=+[uU][rR]'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonRawEscape,pythonUniRawEscape,pythonUniRawEscapeError,@Spell
|
||||||
|
syn region pythonUniRawString start=+[uU][rR]"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonRawEscape,pythonUniRawEscape,pythonUniRawEscapeError,@Spell
|
||||||
|
syn region pythonUniRawString start=+[uU][rR]"""+ end=+"""+ keepend contains=pythonUniRawEscape,pythonUniRawEscapeError,pythonDocTest2,pythonSpaceError,@Spell
|
||||||
|
syn region pythonUniRawString start=+[uU][rR]'''+ end=+'''+ keepend contains=pythonUniRawEscape,pythonUniRawEscapeError,pythonDocTest,pythonSpaceError,@Spell
|
||||||
|
|
||||||
|
syn match pythonUniRawEscape "\([^\\]\(\\\\\)*\)\@<=\\u\x\{4}" display contained
|
||||||
|
syn match pythonUniRawEscapeError "\([^\\]\(\\\\\)*\)\@<=\\u\x\{,3}\X" display contained
|
||||||
|
|
||||||
|
if exists("python_highlight_string_formatting") && python_highlight_string_formatting != 0
|
||||||
|
" String formatting
|
||||||
|
syn match pythonStrFormat "%\(([^)]\+)\)\=[-#0 +]*\d*\(\.\d\+\)\=[hlL]\=[diouxXeEfFgGcrs%]" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
||||||
|
syn match pythonStrFormat "%[-#0 +]*\(\*\|\d\+\)\=\(\.\(\*\|\d\+\)\)\=[hlL]\=[diouxXeEfFgGcrs%]" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("python_highlight_doctests") && python_highlight_doctests != 0
|
||||||
|
" DocTests
|
||||||
|
syn region pythonDocTest start="^\s*>>>" end=+'''+he=s-1 end="^\s*$" contained
|
||||||
|
syn region pythonDocTest2 start="^\s*>>>" end=+"""+he=s-1 end="^\s*$" contained
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Numbers (ints, longs, floats, complex)
|
||||||
|
syn match pythonHexNumber "\<0[xX]\x\+[lL]\=\>" display
|
||||||
|
syn match pythonHexNumber "\<0[xX]\>" display
|
||||||
|
syn match pythonNumber "\<\d\+[lLjJ]\=\>" display
|
||||||
|
syn match pythonFloat "\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" display
|
||||||
|
syn match pythonFloat "\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display
|
||||||
|
syn match pythonFloat "\<\d\+\.\d*\([eE][+-]\=\d\+\)\=[jJ]\=" display
|
||||||
|
|
||||||
|
syn match pythonOctalError "\<0\o*[89]\d*[lL]\=\>" display
|
||||||
|
syn match pythonHexError "\<0[xX]\X\+[lL]\=\>" display
|
||||||
|
|
||||||
|
if exists("python_highlight_builtins") && python_highlight_builtins != 0
|
||||||
|
" Builtin functions, types and objects
|
||||||
|
syn keyword pythonBuiltinObj True False Ellipsis None NotImplemented
|
||||||
|
|
||||||
|
syn keyword pythonBuiltinFunc __import__ abs all any apply
|
||||||
|
syn keyword pythonBuiltinFunc basestring bool buffer callable
|
||||||
|
syn keyword pythonBuiltinFunc chr classmethod cmp coerce compile complex
|
||||||
|
syn keyword pythonBuiltinFunc delattr dict dir divmod enumerate eval
|
||||||
|
syn keyword pythonBuiltinFunc execfile file filter float frozenset getattr
|
||||||
|
syn keyword pythonBuiltinfunc globals hasattr hash help hex id
|
||||||
|
syn keyword pythonBuiltinFunc input int intern isinstance
|
||||||
|
syn keyword pythonBuiltinFunc issubclass iter len list locals long map max
|
||||||
|
syn keyword pythonBuiltinFunc min object oct open ord pow property range
|
||||||
|
syn keyword pythonBuiltinFunc raw_input reduce reload repr
|
||||||
|
syn keyword pythonBuiltinFunc reversed round set setattr
|
||||||
|
syn keyword pythonBuiltinFunc slice sorted staticmethod str sum super tuple
|
||||||
|
syn keyword pythonBuiltinFunc type unichr unicode vars xrange zip
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("python_highlight_exceptions") && python_highlight_exceptions != 0
|
||||||
|
" Builtin exceptions and warnings
|
||||||
|
syn keyword pythonExClass BaseException
|
||||||
|
syn keyword pythonExClass Exception StandardError ArithmeticError
|
||||||
|
syn keyword pythonExClass LookupError EnvironmentError
|
||||||
|
|
||||||
|
syn keyword pythonExClass AssertionError AttributeError EOFError
|
||||||
|
syn keyword pythonExClass FloatingPointError GeneratorExit IOError
|
||||||
|
syn keyword pythonExClass ImportError IndexError KeyError
|
||||||
|
syn keyword pythonExClass KeyboardInterrupt MemoryError NameError
|
||||||
|
syn keyword pythonExClass NotImplementedError OSError OverflowError
|
||||||
|
syn keyword pythonExClass ReferenceError RuntimeError StopIteration
|
||||||
|
syn keyword pythonExClass SyntaxError IndentationError TabError
|
||||||
|
syn keyword pythonExClass SystemError SystemExit TypeError
|
||||||
|
syn keyword pythonExClass UnboundLocalError UnicodeError
|
||||||
|
syn keyword pythonExClass UnicodeEncodeError UnicodeDecodeError
|
||||||
|
syn keyword pythonExClass UnicodeTranslateError ValueError
|
||||||
|
syn keyword pythonExClass WindowsError ZeroDivisionError
|
||||||
|
|
||||||
|
syn keyword pythonExClass Warning UserWarning DeprecationWarning
|
||||||
|
syn keyword pythonExClass PendingDepricationWarning SyntaxWarning
|
||||||
|
syn keyword pythonExClass RuntimeWarning FutureWarning OverflowWarning
|
||||||
|
syn keyword pythonExClass ImportWarning UnicodeWarning
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("python_slow_sync") && python_slow_sync != 0
|
||||||
|
syn sync minlines=2000
|
||||||
|
else
|
||||||
|
" This is fast but code inside triple quoted strings screws it up. It
|
||||||
|
" is impossible to fix because the only way to know if you are inside a
|
||||||
|
" triple quoted string is to start from the beginning of the file.
|
||||||
|
syn sync match pythonSync grouphere NONE "):$"
|
||||||
|
syn sync maxlines=200
|
||||||
|
endif
|
||||||
|
|
||||||
|
if version >= 508 || !exists("did_python_syn_inits")
|
||||||
|
if version <= 508
|
||||||
|
let did_python_syn_inits = 1
|
||||||
|
command -nargs=+ HiLink hi link <args>
|
||||||
|
else
|
||||||
|
command -nargs=+ HiLink hi def link <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
HiLink pythonStatement Statement
|
||||||
|
HiLink pythonImport Statement
|
||||||
|
HiLink pythonFunction Function
|
||||||
|
HiLink pythonConditional Conditional
|
||||||
|
HiLink pythonRepeat Repeat
|
||||||
|
HiLink pythonException Exception
|
||||||
|
HiLink pythonOperator Operator
|
||||||
|
|
||||||
|
HiLink pythonDecorator Define
|
||||||
|
|
||||||
|
HiLink pythonComment Comment
|
||||||
|
HiLink pythonCoding Special
|
||||||
|
HiLink pythonRun Special
|
||||||
|
HiLink pythonTodo Todo
|
||||||
|
|
||||||
|
HiLink pythonError Error
|
||||||
|
HiLink pythonIndentError Error
|
||||||
|
HiLink pythonSpaceError Error
|
||||||
|
|
||||||
|
HiLink pythonString String
|
||||||
|
HiLink pythonUniString String
|
||||||
|
HiLink pythonRawString String
|
||||||
|
HiLink pythonUniRawString String
|
||||||
|
|
||||||
|
HiLink pythonEscape Special
|
||||||
|
HiLink pythonEscapeError Error
|
||||||
|
HiLink pythonUniEscape Special
|
||||||
|
HiLink pythonUniEscapeError Error
|
||||||
|
HiLink pythonUniRawEscape Special
|
||||||
|
HiLink pythonUniRawEscapeError Error
|
||||||
|
|
||||||
|
HiLink pythonStrFormat Special
|
||||||
|
|
||||||
|
HiLink pythonDocTest Special
|
||||||
|
HiLink pythonDocTest2 Special
|
||||||
|
|
||||||
|
HiLink pythonNumber Number
|
||||||
|
HiLink pythonHexNumber Number
|
||||||
|
HiLink pythonFloat Float
|
||||||
|
HiLink pythonOctalError Error
|
||||||
|
HiLink pythonHexError Error
|
||||||
|
|
||||||
|
HiLink pythonBuiltinObj Structure
|
||||||
|
HiLink pythonBuiltinFunc Function
|
||||||
|
|
||||||
|
HiLink pythonExClass Structure
|
||||||
|
|
||||||
|
delcommand HiLink
|
||||||
|
endif
|
||||||
|
|
||||||
|
let b:current_syntax = "python"
|
212
vim/colors/inkpot.vim
Normal file
212
vim/colors/inkpot.vim
Normal file
|
@ -0,0 +1,212 @@
|
||||||
|
" Vim color file
|
||||||
|
" Name: inkpot.vim
|
||||||
|
" Maintainer: Ciaran McCreesh <ciaran.mccreesh@blueyonder.co.uk>
|
||||||
|
" This should work in the GUI, rxvt-unicode (88 colour mode) and xterm (256
|
||||||
|
" colour mode). It won't work in 8/16 colour terminals.
|
||||||
|
"
|
||||||
|
" To use a black background, :let g:inkpot_black_background = 1
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "inkpot"
|
||||||
|
|
||||||
|
" map a urxvt cube number to an xterm-256 cube number
|
||||||
|
fun! <SID>M(a)
|
||||||
|
return strpart("0135", a:a, 1) + 0
|
||||||
|
endfun
|
||||||
|
|
||||||
|
" map a urxvt colour to an xterm-256 colour
|
||||||
|
fun! <SID>X(a)
|
||||||
|
if &t_Co == 88
|
||||||
|
return a:a
|
||||||
|
else
|
||||||
|
if a:a == 8
|
||||||
|
return 237
|
||||||
|
elseif a:a < 16
|
||||||
|
return a:a
|
||||||
|
elseif a:a > 79
|
||||||
|
return 232 + (3 * (a:a - 80))
|
||||||
|
else
|
||||||
|
let l:b = a:a - 16
|
||||||
|
let l:x = l:b % 4
|
||||||
|
let l:y = (l:b / 4) % 4
|
||||||
|
let l:z = (l:b / 16)
|
||||||
|
return 16 + <SID>M(l:x) + (6 * <SID>M(l:y)) + (36 * <SID>M(l:z))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
if ! exists("g:inkpot_black_background")
|
||||||
|
let g:inkpot_black_background = 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
if ! g:inkpot_black_background
|
||||||
|
hi Normal gui=NONE guifg=#cfbfad guibg=#1e1e27
|
||||||
|
else
|
||||||
|
hi Normal gui=NONE guifg=#cfbfad guibg=#000000
|
||||||
|
endif
|
||||||
|
|
||||||
|
hi IncSearch gui=BOLD guifg=#303030 guibg=#cd8b60
|
||||||
|
hi Search gui=NONE guifg=#303030 guibg=#cd8b60
|
||||||
|
hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ce4e4e
|
||||||
|
hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ce8e4e
|
||||||
|
hi ModeMsg gui=BOLD guifg=#7e7eae guibg=NONE
|
||||||
|
hi MoreMsg gui=BOLD guifg=#7e7eae guibg=NONE
|
||||||
|
hi Question gui=BOLD guifg=#ffcd00 guibg=NONE
|
||||||
|
|
||||||
|
hi StatusLine gui=BOLD guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
hi User1 gui=BOLD guifg=#00ff8b guibg=#3e3e5e
|
||||||
|
hi User2 gui=BOLD guifg=#7070a0 guibg=#3e3e5e
|
||||||
|
hi StatusLineNC gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
hi VertSplit gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
|
||||||
|
|
||||||
|
hi WildMenu gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
|
||||||
|
hi MBENormal guifg=#cfbfad guibg=#2e2e3f
|
||||||
|
hi MBEChanged guifg=#eeeeee guibg=#2e2e3f
|
||||||
|
hi MBEVisibleNormal guifg=#cfcfcd guibg=#4e4e8f
|
||||||
|
hi MBEVisibleChanged guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
|
||||||
|
hi DiffText gui=NONE guifg=#ffffcd guibg=#4a2a4a
|
||||||
|
hi DiffChange gui=NONE guifg=#ffffcd guibg=#306b8f
|
||||||
|
hi DiffDelete gui=NONE guifg=#ffffcd guibg=#6d3030
|
||||||
|
hi DiffAdd gui=NONE guifg=#ffffcd guibg=#306d30
|
||||||
|
|
||||||
|
hi Cursor gui=NONE guifg=#404040 guibg=#8b8bff
|
||||||
|
hi lCursor gui=NONE guifg=#404040 guibg=#8fff8b
|
||||||
|
hi CursorIM gui=NONE guifg=#404040 guibg=#8b8bff
|
||||||
|
|
||||||
|
hi Folded gui=NONE guifg=#cfcfcd guibg=#4b208f
|
||||||
|
hi FoldColumn gui=NONE guifg=#8b8bcd guibg=#2e2e2e
|
||||||
|
|
||||||
|
hi Directory gui=NONE guifg=#00ff8b guibg=NONE
|
||||||
|
hi LineNr gui=NONE guifg=#8b8bcd guibg=#2e2e2e
|
||||||
|
hi NonText gui=BOLD guifg=#8b8bcd guibg=NONE
|
||||||
|
hi SpecialKey gui=BOLD guifg=#ab60ed guibg=NONE
|
||||||
|
hi Title gui=BOLD guifg=#af4f4b guibg=NONE
|
||||||
|
hi Visual gui=NONE guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
|
||||||
|
hi Comment gui=NONE guifg=#cd8b00 guibg=NONE
|
||||||
|
hi Constant gui=NONE guifg=#ffcd8b guibg=NONE
|
||||||
|
hi String gui=NONE guifg=#ffcd8b guibg=#404040
|
||||||
|
hi Error gui=NONE guifg=#ffffff guibg=#6e2e2e
|
||||||
|
hi Identifier gui=NONE guifg=#ff8bff guibg=NONE
|
||||||
|
hi Ignore gui=NONE
|
||||||
|
hi Number gui=NONE guifg=#f0ad6d guibg=NONE
|
||||||
|
hi PreProc gui=NONE guifg=#409090 guibg=NONE
|
||||||
|
hi Special gui=NONE guifg=#c080d0 guibg=NONE
|
||||||
|
hi SpecialChar gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi Statement gui=NONE guifg=#808bed guibg=NONE
|
||||||
|
hi Todo gui=BOLD guifg=#303030 guibg=#d0a060
|
||||||
|
hi Type gui=NONE guifg=#ff8bff guibg=NONE
|
||||||
|
hi Underlined gui=BOLD guifg=#df9f2d guibg=NONE
|
||||||
|
hi TaglistTagName gui=BOLD guifg=#808bed guibg=NONE
|
||||||
|
|
||||||
|
hi perlSpecialMatch gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi perlSpecialString gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
|
||||||
|
hi cSpecialCharacter gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
hi cFormat gui=NONE guifg=#c080d0 guibg=#404040
|
||||||
|
|
||||||
|
hi doxygenBrief gui=NONE guifg=#fdab60 guibg=NONE
|
||||||
|
hi doxygenParam gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenPrev gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenSmallSpecial gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenSpecial gui=NONE guifg=#fdd090 guibg=NONE
|
||||||
|
hi doxygenComment gui=NONE guifg=#ad7b20 guibg=NONE
|
||||||
|
hi doxygenSpecial gui=NONE guifg=#fdab60 guibg=NONE
|
||||||
|
hi doxygenSpecialMultilineDesc gui=NONE guifg=#ad600b guibg=NONE
|
||||||
|
hi doxygenSpecialOnelineDesc gui=NONE guifg=#ad600b guibg=NONE
|
||||||
|
|
||||||
|
if v:version >= 700
|
||||||
|
hi Pmenu gui=NONE guifg=#eeeeee guibg=#4e4e8f
|
||||||
|
hi PmenuSel gui=BOLD guifg=#eeeeee guibg=#2e2e3f
|
||||||
|
hi PmenuSbar gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
hi PmenuThumb gui=BOLD guifg=#eeeeee guibg=#6e6eaf
|
||||||
|
|
||||||
|
hi SpellBad gui=undercurl guisp=#cc6666
|
||||||
|
hi SpellRare gui=undercurl guisp=#cc66cc
|
||||||
|
hi SpellLocal gui=undercurl guisp=#cccc66
|
||||||
|
hi SpellCap gui=undercurl guisp=#66cccc
|
||||||
|
|
||||||
|
hi MatchParen gui=NONE guifg=#404040 guibg=#8fff8b
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
if ! g:inkpot_black_background
|
||||||
|
exec "hi Normal cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(80)
|
||||||
|
else
|
||||||
|
exec "hi Normal cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(16)
|
||||||
|
endif
|
||||||
|
|
||||||
|
exec "hi IncSearch cterm=BOLD ctermfg=" . <SID>X(80) . " ctermbg=" . <SID>X(73)
|
||||||
|
exec "hi Search cterm=NONE ctermfg=" . <SID>X(80) . " ctermbg=" . <SID>X(73)
|
||||||
|
exec "hi ErrorMsg cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(48)
|
||||||
|
exec "hi WarningMsg cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(68)
|
||||||
|
exec "hi ModeMsg cterm=BOLD ctermfg=" . <SID>X(38) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi MoreMsg cterm=BOLD ctermfg=" . <SID>X(38) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Question cterm=BOLD ctermfg=" . <SID>X(52) . " ctermbg=" . "NONE"
|
||||||
|
|
||||||
|
exec "hi StatusLine cterm=BOLD ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi User1 cterm=BOLD ctermfg=" . <SID>X(28) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi User2 cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi StatusLineNC cterm=NONE ctermfg=" . <SID>X(84) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi VertSplit cterm=NONE ctermfg=" . <SID>X(84) . " ctermbg=" . <SID>X(81)
|
||||||
|
|
||||||
|
exec "hi WildMenu cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(38)
|
||||||
|
|
||||||
|
exec "hi MBENormal ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi MBEChanged ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi MBEVisibleNormal ctermfg=" . <SID>X(85) . " ctermbg=" . <SID>X(82)
|
||||||
|
exec "hi MBEVisibleChanged ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(82)
|
||||||
|
|
||||||
|
exec "hi DiffText cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(34)
|
||||||
|
exec "hi DiffChange cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(17)
|
||||||
|
exec "hi DiffDelete cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi DiffAdd cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(20)
|
||||||
|
|
||||||
|
exec "hi Folded cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(35)
|
||||||
|
exec "hi FoldColumn cterm=NONE ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(80)
|
||||||
|
|
||||||
|
exec "hi Directory cterm=NONE ctermfg=" . <SID>X(28) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi LineNr cterm=NONE ctermfg=" . <SID>X(39) . " ctermbg=" . <SID>X(80)
|
||||||
|
exec "hi NonText cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi SpecialKey cterm=BOLD ctermfg=" . <SID>X(55) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Title cterm=BOLD ctermfg=" . <SID>X(48) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Visual cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(38)
|
||||||
|
|
||||||
|
exec "hi Comment cterm=NONE ctermfg=" . <SID>X(52) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Constant cterm=NONE ctermfg=" . <SID>X(73) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi String cterm=NONE ctermfg=" . <SID>X(73) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi Error cterm=NONE ctermfg=" . <SID>X(79) . " ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi Identifier cterm=NONE ctermfg=" . <SID>X(53) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Ignore cterm=NONE"
|
||||||
|
exec "hi Number cterm=NONE ctermfg=" . <SID>X(69) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi PreProc cterm=NONE ctermfg=" . <SID>X(25) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Special cterm=NONE ctermfg=" . <SID>X(55) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi SpecialChar cterm=NONE ctermfg=" . <SID>X(55) . " ctermbg=" . <SID>X(81)
|
||||||
|
exec "hi Statement cterm=NONE ctermfg=" . <SID>X(27) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Todo cterm=BOLD ctermfg=" . <SID>X(16) . " ctermbg=" . <SID>X(57)
|
||||||
|
exec "hi Type cterm=NONE ctermfg=" . <SID>X(71) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi Underlined cterm=BOLD ctermfg=" . <SID>X(77) . " ctermbg=" . "NONE"
|
||||||
|
exec "hi TaglistTagName cterm=BOLD ctermfg=" . <SID>X(39) . " ctermbg=" . "NONE"
|
||||||
|
|
||||||
|
if v:version >= 700
|
||||||
|
exec "hi Pmenu cterm=NONE ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(82)
|
||||||
|
exec "hi PmenuSel cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(38)
|
||||||
|
exec "hi PmenuSbar cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(39)
|
||||||
|
exec "hi PmenuThumb cterm=BOLD ctermfg=" . <SID>X(87) . " ctermbg=" . <SID>X(39)
|
||||||
|
|
||||||
|
exec "hi SpellBad cterm=NONE ctermbg=" . <SID>X(32)
|
||||||
|
exec "hi SpellRare cterm=NONE ctermbg=" . <SID>X(33)
|
||||||
|
exec "hi SpellLocal cterm=NONE ctermbg=" . <SID>X(36)
|
||||||
|
exec "hi SpellCap cterm=NONE ctermbg=" . <SID>X(21)
|
||||||
|
exec "hi MatchParen cterm=NONE ctermbg=" . <SID>X(14) . "ctermfg=" . <SID>X(25)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" vim: set et :
|
172
vim/colors/vividchalk.vim
Normal file
172
vim/colors/vividchalk.vim
Normal file
|
@ -0,0 +1,172 @@
|
||||||
|
" Vim color scheme
|
||||||
|
" Name: vividchalk.vim
|
||||||
|
" Author: Tim Pope <vimNOSPAM@tpope.info>
|
||||||
|
" GetLatestVimScripts: 1891 1 :AutoInstall: vividchalk.vim
|
||||||
|
" $Id: vividchalk.vim,v 1.8 2007-07-11 18:50:16 tpope Exp $
|
||||||
|
|
||||||
|
" Based on the Vibrank Ink theme for TextMate
|
||||||
|
" Distributable under the same terms as Vim itself (see :help license)
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
set background=dark
|
||||||
|
endif
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "vividchalk"
|
||||||
|
|
||||||
|
" First two functions adapted from inkpot.vim
|
||||||
|
|
||||||
|
" map a urxvt cube number to an xterm-256 cube number
|
||||||
|
fun! s:M(a)
|
||||||
|
return strpart("0245", a:a, 1) + 0
|
||||||
|
endfun
|
||||||
|
|
||||||
|
" map a urxvt colour to an xterm-256 colour
|
||||||
|
fun! s:X(a)
|
||||||
|
if &t_Co == 88
|
||||||
|
return a:a
|
||||||
|
else
|
||||||
|
if a:a == 8
|
||||||
|
return 237
|
||||||
|
elseif a:a < 16
|
||||||
|
return a:a
|
||||||
|
elseif a:a > 79
|
||||||
|
return 232 + (3 * (a:a - 80))
|
||||||
|
else
|
||||||
|
let l:b = a:a - 16
|
||||||
|
let l:x = l:b % 4
|
||||||
|
let l:y = (l:b / 4) % 4
|
||||||
|
let l:z = (l:b / 16)
|
||||||
|
return 16 + s:M(l:x) + (6 * s:M(l:y)) + (36 * s:M(l:z))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
function! E2T(a)
|
||||||
|
return s:X(a:a)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:choose(mediocre,good)
|
||||||
|
if &t_Co != 88 && &t_Co != 256
|
||||||
|
return a:mediocre
|
||||||
|
else
|
||||||
|
return s:X(a:good)
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:hifg(group,guifg,first,second,...)
|
||||||
|
if a:0 && &t_Co == 256
|
||||||
|
let ctermfg = a:1
|
||||||
|
else
|
||||||
|
let ctermfg = s:choose(a:first,a:second)
|
||||||
|
endif
|
||||||
|
exe "highlight ".a:group." guifg=".a:guifg." ctermfg=".ctermfg
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:hibg(group,guibg,first,second)
|
||||||
|
let ctermbg = s:choose(a:first,a:second)
|
||||||
|
exe "highlight ".a:group." guibg=".a:guibg." ctermbg=".ctermbg
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
hi link railsMethod PreProc
|
||||||
|
hi link rubyDefine Keyword
|
||||||
|
hi link rubySymbol Constant
|
||||||
|
hi link rubyAccess rubyMethod
|
||||||
|
hi link rubyAttribute rubyMethod
|
||||||
|
hi link rubyEval rubyMethod
|
||||||
|
hi link rubyException rubyMethod
|
||||||
|
hi link rubyInclude rubyMethod
|
||||||
|
hi link rubyStringDelimiter rubyString
|
||||||
|
hi link rubyRegexp Regexp
|
||||||
|
hi link rubyRegexpDelimiter rubyRegexp
|
||||||
|
"hi link rubyConstant Variable
|
||||||
|
"hi link rubyGlobalVariable Variable
|
||||||
|
"hi link rubyClassVariable Variable
|
||||||
|
"hi link rubyInstanceVariable Variable
|
||||||
|
hi link javascriptRegexpString Regexp
|
||||||
|
hi link javascriptNumber Number
|
||||||
|
hi link javascriptNull Constant
|
||||||
|
|
||||||
|
call s:hifg("Normal","#EEEEEE","White",87)
|
||||||
|
if &background == "light" || has("gui_running")
|
||||||
|
hi Normal guibg=Black ctermbg=Black
|
||||||
|
else
|
||||||
|
hi Normal guibg=Black ctermbg=NONE
|
||||||
|
endif
|
||||||
|
highlight StatusLine guifg=Black guibg=#aabbee gui=bold ctermfg=Black ctermbg=White cterm=bold
|
||||||
|
highlight StatusLineNC guifg=#444444 guibg=#aaaaaa gui=none ctermfg=Black ctermbg=Grey cterm=none
|
||||||
|
"if &t_Co == 256
|
||||||
|
"highlight StatusLine ctermbg=117
|
||||||
|
"else
|
||||||
|
"highlight StatusLine ctermbg=43
|
||||||
|
"endif
|
||||||
|
highlight WildMenu guifg=Black guibg=#ffff00 gui=bold ctermfg=Black ctermbg=Yellow cterm=bold
|
||||||
|
highlight Cursor guifg=Black guibg=White ctermfg=Black ctermbg=White
|
||||||
|
highlight CursorLine guibg=#333333 guifg=NONE
|
||||||
|
highlight CursorColumn guibg=#333333 guifg=NONE
|
||||||
|
highlight NonText guifg=#404040 ctermfg=8
|
||||||
|
highlight SpecialKey guifg=#404040 ctermfg=8
|
||||||
|
highlight Directory none
|
||||||
|
high link Directory Identifier
|
||||||
|
highlight ErrorMsg guibg=Red ctermbg=DarkRed guifg=NONE ctermfg=NONE
|
||||||
|
highlight Search guifg=NONE ctermfg=NONE gui=none cterm=none
|
||||||
|
call s:hibg("Search" ,"#555555","Black",81)
|
||||||
|
highlight IncSearch guifg=White guibg=Black ctermfg=White ctermbg=Black
|
||||||
|
highlight MoreMsg guifg=#00AA00 ctermfg=Green
|
||||||
|
highlight LineNr guifg=#DDEEFF ctermfg=White
|
||||||
|
call s:hibg("LineNr" ,"#222222","DarkBlue",80)
|
||||||
|
highlight Question none
|
||||||
|
high link Question MoreMsg
|
||||||
|
highlight Title guifg=Magenta ctermfg=Magenta
|
||||||
|
highlight VisualNOS gui=none cterm=none
|
||||||
|
call s:hibg("Visual" ,"#555577","LightBlue",83)
|
||||||
|
call s:hibg("VisualNOS" ,"#444444","DarkBlue",81)
|
||||||
|
highlight WarningMsg guifg=Red ctermfg=Red
|
||||||
|
highlight Folded guibg=#1100aa ctermbg=DarkBlue
|
||||||
|
call s:hibg("Folded" ,"#110077","DarkBlue",17)
|
||||||
|
call s:hifg("Folded" ,"#aaddee","LightCyan",63)
|
||||||
|
highlight FoldColumn none
|
||||||
|
high link FoldColumn Folded
|
||||||
|
highlight Pmenu guifg=White ctermfg=White gui=bold cterm=bold
|
||||||
|
highlight PmenuSel guifg=White ctermfg=White gui=bold cterm=bold
|
||||||
|
call s:hibg("Pmenu" ,"#000099","Blue",18)
|
||||||
|
call s:hibg("PmenuSel" ,"#5555ff","DarkCyan",39)
|
||||||
|
highlight PmenuSbar guibg=Grey ctermbg=Grey
|
||||||
|
highlight PmenuThumb guibg=White ctermbg=White
|
||||||
|
highlight TabLine gui=underline cterm=underline
|
||||||
|
call s:hifg("TabLine" ,"#bbbbbb","LightGrey",85)
|
||||||
|
call s:hibg("TabLine" ,"#333333","DarkGrey",80)
|
||||||
|
highlight TabLineSel guifg=White guibg=Black ctermfg=White ctermbg=Black
|
||||||
|
highlight TabLineFill gui=underline cterm=underline
|
||||||
|
call s:hifg("TabLineFill","#bbbbbb","LightGrey",85)
|
||||||
|
call s:hibg("TabLineFill","#808080","Grey",83)
|
||||||
|
|
||||||
|
hi Type gui=none
|
||||||
|
hi Statement gui=none
|
||||||
|
if !has("gui_mac")
|
||||||
|
" Mac GUI degrades italics to ugly underlining.
|
||||||
|
hi Comment gui=italic
|
||||||
|
hi railsUserClass gui=italic
|
||||||
|
hi railsUserMethod gui=italic
|
||||||
|
endif
|
||||||
|
hi Identifier cterm=none
|
||||||
|
" Commented numbers at the end are *old* 256 color values
|
||||||
|
"highlight PreProc guifg=#EDF8F9
|
||||||
|
call s:hifg("Comment" ,"#9933CC","DarkMagenta",34) " 92
|
||||||
|
" 26 instead?
|
||||||
|
call s:hifg("Constant" ,"#339999","DarkCyan",21) " 30
|
||||||
|
call s:hifg("rubyNumber" ,"#CCFF33","Yellow",60) " 190
|
||||||
|
call s:hifg("String" ,"#66FF00","LightGreen",44,82) " 82
|
||||||
|
call s:hifg("Identifier" ,"#FFCC00","Yellow",72) " 220
|
||||||
|
call s:hifg("Statement" ,"#FF6600","Brown",68) " 202
|
||||||
|
call s:hifg("PreProc" ,"#AAFFFF","LightCyan",47) " 213
|
||||||
|
call s:hifg("railsUserMethod","#AACCFF","LightCyan",27)
|
||||||
|
call s:hifg("Type" ,"#AAAA77","Grey",57) " 101
|
||||||
|
call s:hifg("railsUserClass" ,"#AAAAAA","Grey",7) " 101
|
||||||
|
call s:hifg("Special" ,"#33AA00","DarkGreen",24) " 7
|
||||||
|
call s:hifg("Regexp" ,"#44B4CC","DarkCyan",21) " 74
|
||||||
|
call s:hifg("rubyMethod" ,"#DDE93D","Yellow",77) " 191
|
||||||
|
"highlight railsMethod guifg=#EE1122 ctermfg=1
|
52
vim/colors/wombat.vim
Normal file
52
vim/colors/wombat.vim
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
" Maintainer: Lars H. Nielsen (dengmao@gmail.com)
|
||||||
|
" Cterm addition: Paul deGrandis
|
||||||
|
" Last Change: January 22 2007
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
|
||||||
|
hi clear
|
||||||
|
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "wombat"
|
||||||
|
|
||||||
|
|
||||||
|
" Vim >= 7.0 specific colors
|
||||||
|
if version >= 700
|
||||||
|
hi CursorLine guibg=#2d2d2d ctermbg=236
|
||||||
|
hi CursorColumn guibg=#2d2d2d ctermbg=236
|
||||||
|
hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold ctermfg=230 ctermbg=101 cterm=bold
|
||||||
|
hi Pmenu guifg=#f6f3e8 guibg=#444444 ctermfg=230 ctermbg=238
|
||||||
|
hi PmenuSel guifg=#000000 guibg=#cae682 ctermfg=0 ctermbg=186
|
||||||
|
endif
|
||||||
|
|
||||||
|
" General colors
|
||||||
|
hi Cursor guifg=NONE guibg=#656565 gui=none ctermfg=NONE ctermbg=241 cterm=none
|
||||||
|
hi Normal guifg=#f6f3e8 guibg=#242424 gui=none ctermfg=230 ctermbg=235 cterm=none
|
||||||
|
hi NonText guifg=#808080 guibg=#303030 gui=none ctermfg=244 ctermbg=236 cterm=none
|
||||||
|
hi LineNr guifg=#857b6f guibg=#000000 gui=none ctermfg=101 ctermbg=0 cterm=none
|
||||||
|
hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic ctermfg=230 ctermbg=238 cterm=italic
|
||||||
|
hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none ctermfg=101 ctermbg=238 cterm=none
|
||||||
|
hi VertSplit guifg=#444444 guibg=#444444 gui=none ctermfg=238 ctermbg=238 cterm=none
|
||||||
|
hi Folded guibg=#384048 guifg=#a0a8b0 gui=none ctermbg=237 ctermfg=248 cterm=none
|
||||||
|
hi Title guifg=#f6f3e8 guibg=NONE gui=bold ctermfg=230 ctermbg=NONE cterm=bold
|
||||||
|
hi Visual guifg=#f6f3e8 guibg=#444444 gui=none ctermfg=230 ctermbg=238 cterm=none
|
||||||
|
hi SpecialKey guifg=#808080 guibg=#343434 gui=none ctermfg=244 ctermbg=236 cterm=none
|
||||||
|
|
||||||
|
" Syntax highlighting
|
||||||
|
hi Comment guifg=#99968b gui=italic ctermfg=246 cterm=none
|
||||||
|
hi Todo guifg=#8f8f8f gui=italic ctermfg=245 cterm=none
|
||||||
|
hi Constant guifg=#e5786d gui=none ctermfg=185 cterm=none
|
||||||
|
hi String guifg=#95e454 gui=italic ctermfg=154 cterm=none
|
||||||
|
hi Identifier guifg=#cae682 gui=none ctermfg=186 cterm=none
|
||||||
|
hi Function guifg=#cae682 gui=none ctermfg=187 cterm=bold
|
||||||
|
hi Type guifg=#cae682 gui=none ctermfg=186 cterm=none
|
||||||
|
hi Statement guifg=#8ac6f2 gui=none ctermfg=lightblue cterm=bold
|
||||||
|
hi Keyword guifg=#8ac6f2 gui=none ctermfg=105 cterm=none
|
||||||
|
hi PreProc guifg=#e5786d gui=none ctermfg=173 cterm=none
|
||||||
|
hi Number guifg=#e5786d gui=none ctermfg=185 cterm=none
|
||||||
|
hi Special guifg=#e7f6da gui=none ctermfg=7 cterm=none
|
||||||
|
|
||||||
|
|
133
vim/colors/zenburn.vim
Normal file
133
vim/colors/zenburn.vim
Normal file
|
@ -0,0 +1,133 @@
|
||||||
|
" Vim color file
|
||||||
|
" Maintainer: Jani Nurminen <jani.nurminen@intellitel.com>
|
||||||
|
" Last Change: $Id: zenburn.vim,v 1.13 2002/09/16 18:03:49 jnurmine Exp $
|
||||||
|
" URL: Not yet...
|
||||||
|
" License: GPL
|
||||||
|
"
|
||||||
|
" Nothing too fancy, just some alien fruit salad to keep you in the zone.
|
||||||
|
" This syntax file was designed to be used with dark environments and
|
||||||
|
" low light situations. Of course, if it works during a daybright office, go
|
||||||
|
" ahead :)
|
||||||
|
"
|
||||||
|
" Owes heavily to other Vim color files! With special mentions
|
||||||
|
" to "BlackDust", "Camo" and "Desert".
|
||||||
|
"
|
||||||
|
" To install, copy to ~/.vim/colors directory. Then :colorscheme zenburn.
|
||||||
|
" See also :help syntax
|
||||||
|
"
|
||||||
|
" CONFIGURABLE PARAMETERS:
|
||||||
|
"
|
||||||
|
" You can use the default (don't set any parameters), or you can
|
||||||
|
" set some parameters to tweak the Zenlook colours.
|
||||||
|
"
|
||||||
|
" * To get more contrast to the Visual selection, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Visual = 1
|
||||||
|
"
|
||||||
|
" * To use alternate colouring for Error message, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Error = 1
|
||||||
|
"
|
||||||
|
" * The new default for Include is a duller orang.e To use the original
|
||||||
|
" colouring for Include, use
|
||||||
|
"
|
||||||
|
" let g:zenburn_alternate_Include = 1
|
||||||
|
"
|
||||||
|
" * To turn the parameter(s) back to defaults, use unlet.
|
||||||
|
"
|
||||||
|
" That's it, enjoy!
|
||||||
|
"
|
||||||
|
" TODO
|
||||||
|
" - IME colouring (CursorIM)
|
||||||
|
" - obscure syntax groups: check and colourize
|
||||||
|
" - add more groups if necessary
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
let g:colors_name="zenburn"
|
||||||
|
|
||||||
|
hi Boolean guifg=#dca3a3
|
||||||
|
hi Character guifg=#dca3a3 gui=bold
|
||||||
|
hi Comment guifg=#7f9f7f
|
||||||
|
hi Conditional guifg=#f0dfaf gui=bold
|
||||||
|
hi Constant guifg=#dca3a3 gui=bold
|
||||||
|
hi Cursor guifg=#000d18 guibg=#8faf9f gui=bold
|
||||||
|
hi Debug guifg=#dca3a3 gui=bold
|
||||||
|
hi Define guifg=#ffcfaf gui=bold
|
||||||
|
hi Delimiter guifg=#8f8f8f
|
||||||
|
hi DiffAdd guifg=#709080 guibg=#313c36 gui=bold
|
||||||
|
hi DiffChange guibg=#333333
|
||||||
|
hi DiffDelete guifg=#333333 guibg=#464646
|
||||||
|
hi DiffText guifg=#ecbcbc guibg=#41363c gui=bold
|
||||||
|
hi Directory guifg=#dcdccc gui=bold
|
||||||
|
hi ErrorMsg guifg=#60b48a guibg=#3f3f3f gui=bold
|
||||||
|
hi Exception guifg=#c3bf9f gui=bold
|
||||||
|
hi Float guifg=#c0bed1
|
||||||
|
hi FoldColumn guifg=#93b3a3 guibg=#3f4040
|
||||||
|
hi Folded guifg=#93b3a3 guibg=#3f4040
|
||||||
|
hi Function guifg=#efef8f
|
||||||
|
hi Identifier guifg=#efdcbc
|
||||||
|
hi IncSearch guibg=#f8f893 guifg=#385f38
|
||||||
|
hi Keyword guifg=#f0dfaf gui=bold
|
||||||
|
hi Label guifg=#dfcfaf gui=underline
|
||||||
|
hi LineNr guifg=#7f8f8f guibg=#464646
|
||||||
|
hi Macro guifg=#ffcfaf gui=bold
|
||||||
|
hi ModeMsg guifg=#ffcfaf gui=none
|
||||||
|
hi MoreMsg guifg=#ffffff gui=bold
|
||||||
|
hi NonText guifg=#404040
|
||||||
|
hi Normal guifg=#dcdccc guibg=#3f3f3f
|
||||||
|
hi Number guifg=#8cd0d3
|
||||||
|
hi Operator guifg=#f0efd0
|
||||||
|
hi PreCondit guifg=#dfaf8f gui=bold
|
||||||
|
hi PreProc guifg=#ffcfaf gui=bold
|
||||||
|
hi Question guifg=#ffffff gui=bold
|
||||||
|
hi Repeat guifg=#ffd7a7 gui=bold
|
||||||
|
hi Search guifg=#ffffe0 guibg=#385f38
|
||||||
|
hi SpecialChar guifg=#dca3a3 gui=bold
|
||||||
|
hi SpecialComment guifg=#82a282 gui=bold
|
||||||
|
hi Special guifg=#cfbfaf
|
||||||
|
hi SpecialKey guifg=#9ece9e
|
||||||
|
hi Statement guifg=#e3ceab guibg=#3f3f3f gui=none
|
||||||
|
hi StatusLine guifg=#1e2320 guibg=#acbc90
|
||||||
|
hi StatusLineNC guifg=#2e3330 guibg=#88b090
|
||||||
|
hi StorageClass guifg=#c3bf9f gui=bold
|
||||||
|
hi String guifg=#cc9393
|
||||||
|
hi Structure guifg=#efefaf gui=bold
|
||||||
|
hi Tag guifg=#dca3a3 gui=bold
|
||||||
|
hi Title guifg=#efefef guibg=#3f3f3f gui=bold
|
||||||
|
hi Todo guifg=#7faf8f guibg=#3f3f3f gui=bold
|
||||||
|
hi Typedef guifg=#dfe4cf gui=bold
|
||||||
|
hi Type guifg=#dfdfbf gui=bold
|
||||||
|
hi Underlined guifg=#dcdccc guibg=#3f3f3f gui=underline
|
||||||
|
hi VertSplit guifg=#303030 guibg=#688060
|
||||||
|
hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline
|
||||||
|
hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold
|
||||||
|
hi WildMenu guibg=#2c302d guifg=#cbecd0 gui=underline
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Visual")
|
||||||
|
" Visual with more contrast, thanks to Steve Hall & Cream posse
|
||||||
|
hi Visual guifg=#000000 guibg=#71d3b4
|
||||||
|
else
|
||||||
|
" use default visual
|
||||||
|
hi Visual guifg=#233323 guibg=#71d3b4
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Error")
|
||||||
|
" use a bit different Error
|
||||||
|
hi Error guifg=#ef9f9f guibg=#201010 gui=bold
|
||||||
|
else
|
||||||
|
" default
|
||||||
|
hi Error guifg=#e37170 guibg=#332323 gui=none
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("g:zenburn_alternate_Include")
|
||||||
|
" original setting
|
||||||
|
hi Include guifg=#ffcfaf gui=bold
|
||||||
|
else
|
||||||
|
" new, less contrasted one
|
||||||
|
hi Include guifg=#dfaf8f gui=bold
|
||||||
|
endif
|
||||||
|
" TODO check every syntax group that they're ok
|
40
vim/doc/detectindent.txt
Normal file
40
vim/doc/detectindent.txt
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
*detectindent.txt* The Detect Indent Plugin 1.0, Jan 04, 2005
|
||||||
|
|
||||||
|
Author: Ciaran McCreesh <ciaranm at gentoo dot org>
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
1. Contents *detectindent* *detectindent-contents*
|
||||||
|
|
||||||
|
1. Contents |detectindent-contents|
|
||||||
|
2. :DetectIndent Command |:DetectIndent|
|
||||||
|
Settings |detectindent-settings|
|
||||||
|
3. Uptime ChangeLog |uptime-changelog|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
2. :DetectIndent Command *:DetectIndent*
|
||||||
|
|
||||||
|
The :DetectIndent command tries to intelligently set the 'shiftwidth',
|
||||||
|
'expandtab' and 'tabstop' options based upon the existing settings in
|
||||||
|
use in the active file.
|
||||||
|
|
||||||
|
Settings *detectindent-settings*
|
||||||
|
|
||||||
|
When the correct value for 'expandtab' cannot be determined, it will
|
||||||
|
usually retain its existing value. To specify that 'expandtab' should
|
||||||
|
be used where autodetection is impossible, set: >
|
||||||
|
:let g:detectindent_preferred_expandtab = 1
|
||||||
|
< in your |vimrc| file.
|
||||||
|
|
||||||
|
To set a preferred value for 'shiftwidth' and 'tabstop' when they
|
||||||
|
cannot be automatically detected, set: >
|
||||||
|
:let g:detectindent_preferred_indent = 4
|
||||||
|
< in your |vimrc| file.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
3. DetectIndent ChangeLog *detectindent-changelog*
|
||||||
|
|
||||||
|
v1.0 (20050105)
|
||||||
|
* initial release after discussion on irc.freenode.net:#vim
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
vim:tw=78:ts=8:ft=help
|
131
vim/plugin/detectindent.vim
Normal file
131
vim/plugin/detectindent.vim
Normal file
|
@ -0,0 +1,131 @@
|
||||||
|
" Name: detectindent (global plugin)
|
||||||
|
" Version: 1.0
|
||||||
|
" Author: Ciaran McCreesh <ciaranm at gentoo.org>
|
||||||
|
" Updates: http://dev.gentoo.org/~ciaranm/vim/
|
||||||
|
" Purpose: Detect file indent settings
|
||||||
|
"
|
||||||
|
" License: You may redistribute this plugin under the same terms as Vim
|
||||||
|
" itself.
|
||||||
|
"
|
||||||
|
" Usage: :DetectIndent
|
||||||
|
"
|
||||||
|
" " to prefer expandtab to noexpandtab when detection is
|
||||||
|
" " impossible:
|
||||||
|
" :let g:detectindent_preferred_expandtab = 1
|
||||||
|
"
|
||||||
|
" " to set a preferred indent level when detection is
|
||||||
|
" " impossible:
|
||||||
|
" :let g:detectindent_preferred_indent = 4
|
||||||
|
"
|
||||||
|
" Requirements: Untested on Vim versions below 6.2
|
||||||
|
|
||||||
|
fun! <SID>IsCommentStart(line)
|
||||||
|
" &comments isn't reliable
|
||||||
|
if &ft == "c" || &ft == "cpp"
|
||||||
|
return -1 != match(a:line, '/\*')
|
||||||
|
else
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
fun! <SID>IsCommentEnd(line)
|
||||||
|
if &ft == "c" || &ft == "cpp"
|
||||||
|
return -1 != match(a:line, '\*/')
|
||||||
|
else
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
fun! <SID>DetectIndent()
|
||||||
|
let l:has_leading_tabs = 0
|
||||||
|
let l:has_leading_spaces = 0
|
||||||
|
let l:shortest_leading_spaces_run = 0
|
||||||
|
let l:longest_leading_spaces_run = 0
|
||||||
|
|
||||||
|
let l:idx_end = line("$")
|
||||||
|
let l:idx = 1
|
||||||
|
while l:idx <= l:idx_end
|
||||||
|
let l:line = getline(l:idx)
|
||||||
|
|
||||||
|
" try to skip over comment blocks, they can give really screwy indent
|
||||||
|
" settings in c/c++ files especially
|
||||||
|
if <SID>IsCommentStart(l:line)
|
||||||
|
while l:idx <= l:idx_end && ! <SID>IsCommentEnd(l:line)
|
||||||
|
let l:line = getline(l:idx)
|
||||||
|
let l:idx = l:idx + 1
|
||||||
|
endwhile
|
||||||
|
let l:idx = l:idx + 1
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
|
||||||
|
let l:leading_char = strpart(l:line, 0, 1)
|
||||||
|
|
||||||
|
if l:leading_char == "\t"
|
||||||
|
let l:has_leading_tabs = 1
|
||||||
|
|
||||||
|
elseif l:leading_char == " "
|
||||||
|
" only interested if we don't have a run of spaces followed by a
|
||||||
|
" tab.
|
||||||
|
if -1 == match(l:line, '^ \+\t')
|
||||||
|
let l:has_leading_spaces = 1
|
||||||
|
let l:spaces = strlen(matchstr(l:line, '^ \+'))
|
||||||
|
if l:shortest_leading_spaces_run == 0 ||
|
||||||
|
\ l:spaces < l:shortest_leading_spaces_run
|
||||||
|
let l:shortest_leading_spaces_run = l:spaces
|
||||||
|
endif
|
||||||
|
if l:spaces > l:longest_leading_spaces_run
|
||||||
|
let l:longest_leading_spaces_run = l:spaces
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
let l:idx = l:idx + 1
|
||||||
|
endwhile
|
||||||
|
|
||||||
|
if l:has_leading_tabs && ! l:has_leading_spaces
|
||||||
|
" tabs only, no spaces
|
||||||
|
set noexpandtab
|
||||||
|
if exists("g:detectindent_preferred_tabsize")
|
||||||
|
let &shiftwidth = g:detectindent_preferred_indent
|
||||||
|
let &tabstop = g:detectindent_preferred_indent
|
||||||
|
endif
|
||||||
|
|
||||||
|
elseif l:has_leading_spaces && ! l:has_leading_tabs
|
||||||
|
" spaces only, no tabs
|
||||||
|
set expandtab
|
||||||
|
let &shiftwidth = l:shortest_leading_spaces_run
|
||||||
|
let &softtabstop = l:shortest_leading_spaces_run
|
||||||
|
|
||||||
|
elseif l:has_leading_spaces && l:has_leading_tabs
|
||||||
|
" spaces and tabs
|
||||||
|
set noexpandtab
|
||||||
|
let &shiftwidth = l:shortest_leading_spaces_run
|
||||||
|
|
||||||
|
" mmmm, time to guess how big tabs are
|
||||||
|
if l:longest_leading_spaces_run < 2
|
||||||
|
let &tabstop = 2
|
||||||
|
elseif l:longest_leading_spaces_run < 4
|
||||||
|
let &tabstop = 4
|
||||||
|
else
|
||||||
|
let &tabstop = 8
|
||||||
|
endif
|
||||||
|
|
||||||
|
else
|
||||||
|
" no spaces, no tabs
|
||||||
|
if exists("g:detectindent_preferred_tabsize")
|
||||||
|
let &shiftwidth = g:detectindent_preferred_indent
|
||||||
|
let &tabstop = g:detectindent_preferred_indent
|
||||||
|
endif
|
||||||
|
if exists("g:detectindent_preferred_expandtab")
|
||||||
|
set expandtab
|
||||||
|
if exists("g:detectindent_preferred_tabsize")
|
||||||
|
let &softtabstop = l:shortest_leading_spaces_run
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
command! -nargs=0 DetectIndent call <SID>DetectIndent()
|
||||||
|
|
276
vimrc
Normal file
276
vimrc
Normal file
|
@ -0,0 +1,276 @@
|
||||||
|
" vimrc
|
||||||
|
" Main, Original author: Saleem Abdulrasool <compnerd@compnerd.org>
|
||||||
|
" Trivial modifications: David Majnemer
|
||||||
|
" vim: set ts=3 sw=3 et nowrap:
|
||||||
|
|
||||||
|
scriptencoding utf-8 " This file is in UTF-8
|
||||||
|
|
||||||
|
" ---- Terminal Setup ----
|
||||||
|
if (&term =~ "xterm") && (&termencoding == "")
|
||||||
|
set termencoding=utf-8
|
||||||
|
endif
|
||||||
|
|
||||||
|
if (&term =~ "rxvt-unicode") && (&termencoding == "")
|
||||||
|
set termencoding=utf-8
|
||||||
|
endif
|
||||||
|
" ---- General Setup ----
|
||||||
|
set nocompatible " Don't emulate vi's limitations
|
||||||
|
set encoding=utf-8 " Default encoding should always be UTF-8
|
||||||
|
set tabstop=4 " 4 spaces for tabs
|
||||||
|
set shiftwidth=4 " 4 spaces for indents
|
||||||
|
"set smarttab " Tab next line based on current line
|
||||||
|
"set expandtab " Spaces for indentation
|
||||||
|
"set autoindent " Automatically indent next line
|
||||||
|
"set smartindent " Indent next line based on current line
|
||||||
|
"set linebreak " Display long lines wrapped at word boundaries
|
||||||
|
set incsearch " Enable incremental searching
|
||||||
|
set hlsearch " Highlight search matches
|
||||||
|
set ignorecase " Ignore case when searching
|
||||||
|
set infercase " Attempt to figure out the correct case
|
||||||
|
set showfulltag " Show full tags when doing completion
|
||||||
|
set virtualedit=block " Only allow virtual editing in block mode
|
||||||
|
set lazyredraw " Lazy Redraw (faster macro execution)
|
||||||
|
set wildmenu " Menu on completion please
|
||||||
|
set wildmode=longest,full " Match the longest substring, complete with first
|
||||||
|
set wildignore=*.o,*~ " Ignore temp files in wildmenu
|
||||||
|
set scrolloff=3 " Show 3 lines of context during scrolls
|
||||||
|
set sidescrolloff=2 " Show 2 columns of context during scrolls
|
||||||
|
set backspace=2 " Normal backspace behavior
|
||||||
|
"set textwidth=80 " Break lines at 80 characters
|
||||||
|
set hidden " Allow flipping of buffers without saving
|
||||||
|
set noerrorbells " Disable error bells
|
||||||
|
set visualbell " Turn visual bell on
|
||||||
|
set t_vb= " Make the visual bell emit nothing
|
||||||
|
|
||||||
|
if has('autocmd')
|
||||||
|
autocmd GuiEnter * set t_vb= " Disable the visual bell in gvim
|
||||||
|
endif
|
||||||
|
" ---- Filetypes ----
|
||||||
|
if has('syntax')
|
||||||
|
syntax on
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('osfiletype')
|
||||||
|
filetype on " Detect filetype by extension
|
||||||
|
filetype indent on " Enable indents based on extensions
|
||||||
|
filetype plugin on " Load filetype plugins
|
||||||
|
endif
|
||||||
|
|
||||||
|
" ---- Folding ----
|
||||||
|
if has('eval')
|
||||||
|
fun! WideFold()
|
||||||
|
if winwidth(0) > 90
|
||||||
|
setlocal foldcolumn=1
|
||||||
|
else
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
let g:detectindent_preferred_expandtab = 0
|
||||||
|
let g:detectindent_preferred_indent = 4
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('autocmd')
|
||||||
|
autocmd BufEnter * :call WideFold()
|
||||||
|
autocmd BufReadPost * :DetectIndent
|
||||||
|
endif
|
||||||
|
|
||||||
|
" ---- Spelling ----
|
||||||
|
if (v:version >= 700)
|
||||||
|
set spelllang=en_us " US English Spelling please
|
||||||
|
|
||||||
|
" Toggle spellchecking with F10
|
||||||
|
nmap <silent> <F10> :silent set spell!<CR>
|
||||||
|
imap <silent> <F10> <C-O>:silent set spell!<CR>
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Always display a pretty statusline
|
||||||
|
set title
|
||||||
|
set laststatus=2
|
||||||
|
set shortmess=atI
|
||||||
|
set statusline=Editing:\ %r%t%m\ %=Location:\ Line\ %l/%L\ \ Col:\ %c\ (%p%%)
|
||||||
|
|
||||||
|
" Enable modelines only on secure vim
|
||||||
|
if (v:version == 603 && has("patch045")) || (v:version > 603)
|
||||||
|
set modeline
|
||||||
|
else
|
||||||
|
set nomodeline
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Shamelessly stolen from Ciaran McCreesh <ciaranm@ciaranm.org>
|
||||||
|
if has('eval')
|
||||||
|
fun! LoadColorScheme(schemes)
|
||||||
|
let l:schemes = a:schemes . ":"
|
||||||
|
|
||||||
|
while l:schemes != ""
|
||||||
|
let l:scheme = strpart(l:schemes, 0, stridx(l:schemes, ":"))
|
||||||
|
let l:schemes = strpart(l:schemes, stridx(l:schemes, ":") + 1)
|
||||||
|
|
||||||
|
try
|
||||||
|
exec "colorscheme" l:scheme
|
||||||
|
break
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
|
endwhile
|
||||||
|
endfun
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
set background=light " We use a light background here
|
||||||
|
call LoadColorScheme("wombat:desert") " Set the colorscheme
|
||||||
|
elseif &t_Co == 256
|
||||||
|
set background=light " We use a light background here
|
||||||
|
call LoadColorScheme("wombat:inkpot") " Set the colorscheme
|
||||||
|
elseif &t_Co == 88
|
||||||
|
set background=dark " We use a dark background here
|
||||||
|
call LoadColorScheme("inkpot:zellner") " Set the colorscheme
|
||||||
|
else
|
||||||
|
set background=dark " We use a dark background here
|
||||||
|
call LoadColorScheme("zellner") " Set the colorscheme
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Show trailing whitespace visually
|
||||||
|
" Shamelessly stolen from Ciaran McCreesh <ciaranm@gentoo.org>
|
||||||
|
if (&termencoding == "utf-8") || has("gui_running")
|
||||||
|
if v:version >= 700
|
||||||
|
set list listchars=tab:»·,trail:·,extends:…,nbsp:‗
|
||||||
|
else
|
||||||
|
set list listchars=tab:»·,trail:·,extends:…
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
if v:version >= 700
|
||||||
|
set list listchars=tab:>-,trail:.,extends:>,nbsp:_
|
||||||
|
else
|
||||||
|
set list listchars=tab:>-,trail:.,extends:>
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('mouse')
|
||||||
|
" Dont copy the listchars when copying
|
||||||
|
set mouse=nvi
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Get rid of the annoying UI
|
||||||
|
if has("gui")
|
||||||
|
set guioptions-=t " Disable menu tear-offs
|
||||||
|
set guioptions-=T " Disable the toolbar
|
||||||
|
set guioptions-=m " Disable the menu
|
||||||
|
set guioptions-=R " Disable the (right) scrollbar
|
||||||
|
set guioptions-=r " Disable the (right) scrollbar
|
||||||
|
set guioptions-=l " Disable the (left) scrollbar
|
||||||
|
set guioptions-=L " Disable the (left) scrollbar
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('autocmd')
|
||||||
|
" unhighlight search when idle
|
||||||
|
autocmd CursorHold * nohls | redraw
|
||||||
|
|
||||||
|
" always refresh syntax from the start
|
||||||
|
autocmd BufEnter * syntax sync fromstart
|
||||||
|
|
||||||
|
" subversion commit messages need not be backed up
|
||||||
|
autocmd BufRead svn-commit.tmp :setlocal nobackup
|
||||||
|
|
||||||
|
" mutt does not like UTF-8
|
||||||
|
autocmd BufRead,BufNewFile *
|
||||||
|
\ if &ft == 'mail' | set fileencoding=iso8859-1 | endif
|
||||||
|
|
||||||
|
" fix up procmail rule detection
|
||||||
|
autocmd BufRead procmailrc :setfiletype procmail
|
||||||
|
endif
|
||||||
|
|
||||||
|
" ---- cscope/ctags setup ----
|
||||||
|
if has('cscope') && filereadable('/usr/bin/cscope')
|
||||||
|
" Search cscope and ctags, in that order
|
||||||
|
set cscopetag
|
||||||
|
set cscopetagorder=0
|
||||||
|
|
||||||
|
set nocsverb
|
||||||
|
if filereadable('cscope.out')
|
||||||
|
cs add cscope.out
|
||||||
|
endif
|
||||||
|
set csverb
|
||||||
|
endif
|
||||||
|
|
||||||
|
" ---- Key Mappings ----
|
||||||
|
|
||||||
|
" improved lookup
|
||||||
|
if has('eval')
|
||||||
|
fun! GoDefinition()
|
||||||
|
let pos = getpos(".")
|
||||||
|
normal! gd
|
||||||
|
if getpos(".") == pos
|
||||||
|
exe "tag " . expand("<cword>")
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
endif
|
||||||
|
|
||||||
|
nmap <C-]> :call GoDefinition()<CR>
|
||||||
|
|
||||||
|
if has('autocmd')
|
||||||
|
" Shortcuts
|
||||||
|
fun! <SID>cabbrev()
|
||||||
|
iab #i #include
|
||||||
|
iab #I #include
|
||||||
|
|
||||||
|
iab #d #define
|
||||||
|
iab #D #define
|
||||||
|
|
||||||
|
iab #e #endif
|
||||||
|
iab #E #endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
autocmd FileType c,cpp :call <SID>cabbrev()
|
||||||
|
|
||||||
|
" make tab reindent in normal mode
|
||||||
|
autocmd FileType c,cpp,cs,java nmap <Tab> =0<CR>
|
||||||
|
endif
|
||||||
|
|
||||||
|
" tab indents selection
|
||||||
|
vmap <silent> <Tab> >gv
|
||||||
|
|
||||||
|
" shift-tab unindents
|
||||||
|
vmap <silent> <S-Tab> <gv
|
||||||
|
|
||||||
|
" Page using space
|
||||||
|
noremap <Space> <C-F>
|
||||||
|
|
||||||
|
" shifted arrows are stupid
|
||||||
|
inoremap <S-Up> <C-O>gk
|
||||||
|
noremap <S-Up> gk
|
||||||
|
inoremap <S-Down> <C-O>gj
|
||||||
|
noremap <S-Down> gj
|
||||||
|
|
||||||
|
" Y should yank to EOL
|
||||||
|
map Y y$
|
||||||
|
|
||||||
|
" vK is stupid
|
||||||
|
vmap K k
|
||||||
|
|
||||||
|
" W is annoying
|
||||||
|
nmap :W :w
|
||||||
|
|
||||||
|
" Q is annoying
|
||||||
|
nmap :Q :q
|
||||||
|
|
||||||
|
" WQ is annoying
|
||||||
|
nmap :WQ :wq
|
||||||
|
|
||||||
|
" Wq is annoying
|
||||||
|
nmap :Wq :wq
|
||||||
|
|
||||||
|
" just continue
|
||||||
|
map K K<cr>
|
||||||
|
|
||||||
|
" Toggle numbers with F12
|
||||||
|
nmap <silent> <F12> :silent set number!<CR>
|
||||||
|
imap <silent> <F12> <C-O>:silent set number!<CR>
|
||||||
|
|
||||||
|
" Don't force column 0 for #
|
||||||
|
inoremap # X<BS>#
|
||||||
|
|
||||||
|
" Python specific stuff
|
||||||
|
if has('eval')
|
||||||
|
let python_highlight_all = 1
|
||||||
|
let python_slow_sync = 1
|
||||||
|
endif
|
1
zsh/.debian-cache/DEBS_avail
Normal file
1
zsh/.debian-cache/DEBS_avail
Normal file
File diff suppressed because one or more lines are too long
1
zsh/.debian-cache/DEBS_installed
Normal file
1
zsh/.debian-cache/DEBS_installed
Normal file
File diff suppressed because one or more lines are too long
1058
zsh/.history
Normal file
1058
zsh/.history
Normal file
File diff suppressed because it is too large
Load diff
1317
zsh/.zcompdump
Normal file
1317
zsh/.zcompdump
Normal file
File diff suppressed because it is too large
Load diff
85
zsh/utility
Executable file
85
zsh/utility
Executable file
|
@ -0,0 +1,85 @@
|
||||||
|
# utility.sh
|
||||||
|
# Miscellaneous Utility Functions
|
||||||
|
|
||||||
|
function unkey-host()
|
||||||
|
{
|
||||||
|
if [[ ${#} -ne 1 ]] && return 1
|
||||||
|
sed -i -e "/$1/d" $HOME/.ssh/known_hosts
|
||||||
|
}
|
||||||
|
|
||||||
|
function mkcd()
|
||||||
|
{
|
||||||
|
if [[ -d "$1" ]] ; then
|
||||||
|
cd "$1"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$1" && cd "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
function extract()
|
||||||
|
{
|
||||||
|
if [[ ! -f "$1" ]] ; then
|
||||||
|
echo "The file ("$1") does not exist!"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
#local mime=$(file -iL "$1" | awk '{ split($NF, parts, "/"); print parts[2]; }')
|
||||||
|
|
||||||
|
#case "${(L)mime}" in
|
||||||
|
# x-bzip2) bzip2 -dc "${1}" > $(basename "${1%.*}") ;;
|
||||||
|
# x-gzip) gzip -dc "${1}" > $(basename "${1%.*}") ;;
|
||||||
|
# x-tar) tar xf "${1}" --no-same-owner ;;
|
||||||
|
# x-zip) unzip -qo "${1}" ;;
|
||||||
|
# *)
|
||||||
|
case "${(L)1}" in
|
||||||
|
*.tar)
|
||||||
|
tar xf "${1}" --no-same-owner
|
||||||
|
;;
|
||||||
|
*.tar.gz|*.tgz|*.tar.Z)
|
||||||
|
tar zxf "${1}" --no-same-owner
|
||||||
|
;;
|
||||||
|
*.tar.bz2|*.tbz2)
|
||||||
|
tar jxf "${1}" --no-same-owner
|
||||||
|
;;
|
||||||
|
*.zip|*.ZIP|*.jar)
|
||||||
|
unzip -qo "${1}"
|
||||||
|
;;
|
||||||
|
*.gz|*.Z|*.z)
|
||||||
|
gzip -dc "${1}" > $(basename "${1%.*}")
|
||||||
|
;;
|
||||||
|
*.bz2)
|
||||||
|
bzip2 -dc "${1}" > $(basename "${1%.*}")
|
||||||
|
;;
|
||||||
|
*.rar|*.RAR)
|
||||||
|
unrar x -idq "${1}"
|
||||||
|
;;
|
||||||
|
*.LHa|*.LHA|*.lha|*.lzh)
|
||||||
|
lha xqf "${1}"
|
||||||
|
;;
|
||||||
|
*.a|*.deb)
|
||||||
|
ar x "${1}"
|
||||||
|
;;
|
||||||
|
*.tar.lzma)
|
||||||
|
lzma -dc "${1}" | tar xf - --no-same-owner
|
||||||
|
;;
|
||||||
|
*.lzma)
|
||||||
|
lzma -dc "${1}" > $(basename "${1%.*}")
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unable to extract '"$1"'"
|
||||||
|
return 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
# ;;
|
||||||
|
#esac
|
||||||
|
|
||||||
|
return $?
|
||||||
|
}
|
||||||
|
|
||||||
|
zstyle ':completion:*:*:extract:*' file-patterns '*.(tar|tar.gz|tgz|tar.Z|tar.bz2|tbz2|zip|ZIP|jar|gz|Z|z|bz2|rar|RAR|LHa|LHA|lha|lzh|a|deb|tar.lzma|lzma):Compressed\ Files *(-/):directories'
|
||||||
|
|
||||||
|
alias svn-diff='svn diff --diff-cmd /usr/bin/diff -x -burNp'
|
||||||
|
alias svn-colordiff='svn diff --diff-cmd /usr/bin/colordiff -x -burNp'
|
||||||
|
|
||||||
|
# vim: set ft=sh ts=3 sw=3 et:
|
281
zshrc
Normal file
281
zshrc
Normal file
|
@ -0,0 +1,281 @@
|
||||||
|
# .zshrc
|
||||||
|
# Original, Main author: Saleem Abdulrasool <compnerd@compnerd.org>
|
||||||
|
# Trivial modifications: David Majnemer
|
||||||
|
# vim:set nowrap:
|
||||||
|
|
||||||
|
autoload -Uz compinit; compinit -d "${HOME}/.zsh/.zcompdump"
|
||||||
|
|
||||||
|
autoload -Uz age
|
||||||
|
autoload -Uz zmv
|
||||||
|
|
||||||
|
if [[ ${ZSH_VERSION//.} -gt 420 ]] ; then
|
||||||
|
autoload -Uz url-quote-magic
|
||||||
|
zle -N self-insert url-quote-magic
|
||||||
|
fi
|
||||||
|
|
||||||
|
# disable core dumps
|
||||||
|
limit coredumpsize 0
|
||||||
|
|
||||||
|
# clear on exit
|
||||||
|
trap clear 0
|
||||||
|
|
||||||
|
# shell options
|
||||||
|
setopt AUTO_CD # directoy command does cd
|
||||||
|
setopt CORRECT # correct spelling of commands
|
||||||
|
setopt AUTO_PUSHD # cd uses directory stack
|
||||||
|
setopt CHASE_DOTS # resolve .. in cd
|
||||||
|
setopt CHASE_LINKS # resolve symbolic links in cd
|
||||||
|
setopt CDABLE_VARS # cd var works if $var is a directory
|
||||||
|
setopt PUSHD_SILENT # make pushd quiet
|
||||||
|
setopt ALWAYS_TO_END # goto end of word on completion
|
||||||
|
setopt EXTENDED_GLOB # use zsh globbing extensions
|
||||||
|
setopt SH_WORD_SPLIT # split non-array variables
|
||||||
|
setopt BASH_AUTO_LIST # list completions on second tab
|
||||||
|
setopt LIST_ROWS_FIRST # list completions across
|
||||||
|
setopt COMPLETE_IN_WORD # completion works inside words
|
||||||
|
setopt MAGIC_EQUAL_SUBST # special expansion after all =
|
||||||
|
|
||||||
|
unsetopt BEEP # stop beeping!
|
||||||
|
unsetopt LIST_BEEP # seriously, stop beeping!
|
||||||
|
|
||||||
|
unsetopt NO_MATCH # dont error on no glob matches
|
||||||
|
|
||||||
|
# history
|
||||||
|
export HISTSIZE=1000
|
||||||
|
export SAVEHIST=1000
|
||||||
|
export HISTFILE="${HOME}/.zsh/.history"
|
||||||
|
|
||||||
|
setopt SHARE_HISTORY
|
||||||
|
setopt HIST_IGNORE_SPACE
|
||||||
|
setopt HIST_REDUCE_BLANKS
|
||||||
|
setopt INC_APPEND_HISTORY
|
||||||
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
|
|
||||||
|
unsetopt HIST_BEEP
|
||||||
|
unsetopt EXTENDED_HISTORY
|
||||||
|
|
||||||
|
# colors
|
||||||
|
if ( which dircolors &> /dev/null ) ; then
|
||||||
|
eval $(dircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS"))
|
||||||
|
elif ( which gdircolors &> /dev/null ) ; then
|
||||||
|
eval $(gdircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS"))
|
||||||
|
fi
|
||||||
|
|
||||||
|
( which lesspipe &> /dev/null ) && eval $(lesspipe)
|
||||||
|
export LESS=' -R'
|
||||||
|
|
||||||
|
( which less &> /dev/null ) && export PAGER='less'
|
||||||
|
|
||||||
|
( which vim &> /dev/null ) && export EDITOR='vim'
|
||||||
|
|
||||||
|
# aliases
|
||||||
|
alias cd..='cd ..'
|
||||||
|
|
||||||
|
case `uname -s` in
|
||||||
|
Linux)
|
||||||
|
alias ls="ls -h --color=auto"
|
||||||
|
alias grep='grep -d skip --color=auto'
|
||||||
|
;;
|
||||||
|
FreeBSD|Darwin|DragonFly)
|
||||||
|
# we must lie to the mac, for it is dumb
|
||||||
|
export LSCOLORS=ExGxFxDxCxDxDxHbaDacec
|
||||||
|
alias ls="ls -Gh"
|
||||||
|
alias grep='grep -d skip --color=auto'
|
||||||
|
;;
|
||||||
|
SunOS)
|
||||||
|
# solaris has ancient termcaps, force xterm to be old skool
|
||||||
|
if [[ $TERM == (xterm*) ]]; then
|
||||||
|
export TERM=xterm
|
||||||
|
fi
|
||||||
|
|
||||||
|
if (which gls &> /dev/null) ; then
|
||||||
|
alias ls="gls -h --color=auto"
|
||||||
|
else
|
||||||
|
alias ls="ls -h"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if (which ggrep &> /dev/null) ; then
|
||||||
|
alias grep='ggrep -d skip --color=auto'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
alias df='df -h'
|
||||||
|
alias du='du -h'
|
||||||
|
|
||||||
|
alias ping='ping -c4'
|
||||||
|
|
||||||
|
alias cp='nocorrect cp'
|
||||||
|
alias mv='nocorrect mv'
|
||||||
|
alias rm='nocorrect rm -ir'
|
||||||
|
alias mkdir='nocorrect mkdir'
|
||||||
|
|
||||||
|
alias :q='exit'
|
||||||
|
alias :wq='exit'
|
||||||
|
|
||||||
|
( type -p time &> /dev/null ) && alias time='command time'
|
||||||
|
|
||||||
|
# keybindings
|
||||||
|
bindkey -d
|
||||||
|
bindkey -e
|
||||||
|
bindkey ' ' magic-space
|
||||||
|
|
||||||
|
#bindkey -M vicmd '' redo
|
||||||
|
#bindkey -M vicmd 'u' undo
|
||||||
|
#bindkey -M vicmd 'ga' what-cursor-position
|
||||||
|
|
||||||
|
#bindkey -M viins '' history-incremental-search-backward
|
||||||
|
#bindkey -M viins '' history-incremental-search-forward
|
||||||
|
case $TERM in
|
||||||
|
xterm*)
|
||||||
|
bindkey '^[[H' beginning-of-line
|
||||||
|
bindkey '^[[F' end-of-line
|
||||||
|
bindkey '^[OH' beginning-of-line
|
||||||
|
bindkey '^[OF' end-of-line
|
||||||
|
bindkey '^[[3~' delete-char
|
||||||
|
bindkey '^[[1;5C' emacs-forward-word
|
||||||
|
bindkey '^[[1;5D' emacs-backward-word
|
||||||
|
bindkey '^[[5C' emacs-forward-word
|
||||||
|
bindkey '^[[5D' emacs-backward-word
|
||||||
|
bindkey '^[OC' emacs-forward-word
|
||||||
|
bindkey '^[OD' emacs-backward-word
|
||||||
|
;;
|
||||||
|
linux)
|
||||||
|
bindkey '^[[1~' beginning-of-line
|
||||||
|
bindkey '^[[4~' end-of-line
|
||||||
|
bindkey '^[[3~' delete-char
|
||||||
|
;;
|
||||||
|
rxvt*)
|
||||||
|
bindkey '^[[c' emacs-forward-word
|
||||||
|
bindkey '^[[d' emacs-backward-word
|
||||||
|
bindkey '^[Oc' emacs-forward-word
|
||||||
|
bindkey '^[Od' emacs-backward-word
|
||||||
|
bindkey '^[[3~' delete-char
|
||||||
|
bindkey '^[[7~' beginning-of-line
|
||||||
|
bindkey '^[[8~' end-of-line
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# prompt
|
||||||
|
if [[ -z ${SSH_TTY} ]] ; then
|
||||||
|
PS1=$'%{\e[01;32m%}%n@%m %{\e[01;34m%}%~ %(?..%{\e[01;31m%})%(!.#.$) %{\e[00;00m%}'
|
||||||
|
RPS1=$'%{\e[01;33m%}[%t]%{\e[00;00m%}'
|
||||||
|
else
|
||||||
|
PS1=$'%{\e[01;36m%}%n %(?..%{\e[01;31m%})%(!.#.$) %{\e[00;00m%}'
|
||||||
|
RPS1=$'%{\e[01;33m%}%m %{\e[01;32m%}%~%{\e[00;00m%}'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# terminal titles
|
||||||
|
if [[ "${TERM}" != "linux" ]] ; then
|
||||||
|
precmd() { print -Pn "\e]0;%n@%m $(print -Pn "%40>...>$1")\007" }
|
||||||
|
preexec() { print -Pn "\e]0;%n@%m $(print -Pn "%40>...>$1")\007" }
|
||||||
|
fi
|
||||||
|
|
||||||
|
# completion menu
|
||||||
|
zstyle ':completion:*' menu select=1
|
||||||
|
zstyle ':completion:*:functions' ignored-patterns '_*'
|
||||||
|
|
||||||
|
# group matches
|
||||||
|
zstyle ':completion:*' group-name ''
|
||||||
|
zstyle ':completion:*:matches' group 'yes'
|
||||||
|
|
||||||
|
# colors on completions
|
||||||
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||||
|
|
||||||
|
# users are all useless, ignore them always
|
||||||
|
zstyle -e ':completion:*' users "reply=( root '${USERNAME}' )"
|
||||||
|
|
||||||
|
# caching good
|
||||||
|
zstyle ':completion:*' use-cache on
|
||||||
|
zstyle ':completion:*' cache-path "${HOME}/.zsh/.${HOST}-cache"
|
||||||
|
|
||||||
|
# descriptions
|
||||||
|
zstyle ':completion:*:messages' format $'\e[01;35m -- %d -- \e[00;00m'
|
||||||
|
zstyle ':completion:*:warnings' format $'\e[01;31m -- No Matches Found -- \e[00;00m'
|
||||||
|
zstyle ':completion:*:descriptions' format $'\e[01;33m -- %d -- \e[00;00m'
|
||||||
|
|
||||||
|
# kill/killall menu and general process listing
|
||||||
|
zstyle ':completion:*:*:kill:*' menu yes select
|
||||||
|
zstyle ':completion:*:*:kill:*' sort false
|
||||||
|
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=31;31'
|
||||||
|
|
||||||
|
zstyle ':completion:*:*:killall:*' menu yes select
|
||||||
|
|
||||||
|
case `uname -s` in
|
||||||
|
Linux)
|
||||||
|
zstyle ':completion:*:processes-names' command 'ps -e --no-headers -o args'
|
||||||
|
;;
|
||||||
|
FreeBSD|Interix|OpenBSD|SunOS)
|
||||||
|
zstyle ':completion:*:processes-names' command 'ps -e -o args | awk "NR != 1"'
|
||||||
|
;;
|
||||||
|
Darwin)
|
||||||
|
if [ "$(sw_vers -productVersion | cut -f2 -d'.')" -ge "4" ] ; then
|
||||||
|
zstyle ':completion:*:processes-names' command 'ps -e -o command | awk "NR != 1"'
|
||||||
|
else
|
||||||
|
zstyle ':completion:*:processes-names' command 'ps -A -o command | awk "NR != 1"'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case `uname -s` in
|
||||||
|
Linux|SunOS|FreeBSD|Interix|OpenBSD)
|
||||||
|
zstyle ':completion:*:*:kill:*:processes' command 'ps --forest -U '${USERNAME}' -o pid,args | sed "/ps --forest -U '${USERNAME}' -o pid,args/d"'
|
||||||
|
;;
|
||||||
|
Darwin)
|
||||||
|
zstyle ':completion:*:*:kill:*:processes' command 'ps -U '${USERNAME}' -o pid,command | sed "/ps -U '${USERNAME}' -o pid,command/d"'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case `uname -s` in
|
||||||
|
Interix|SunOS|FreeBSD|Linux)
|
||||||
|
zstyle ':completion:*:*:killall:*:processes-names' command "ps -U '${USERNAME}' -o comm"
|
||||||
|
;;
|
||||||
|
Darwin)
|
||||||
|
if [ "$(sw_vers -productVersion | cut -f2 -d'.')" -ge "4" ] ; then
|
||||||
|
zstyle ':completion:*:*:killall:*:processes-names' command "ps -U '${USERNAME}' -o comm"
|
||||||
|
else
|
||||||
|
zstyle ':completion:*:*:killall:*:processes-names' command "ps -U '${USERNAME}' -o command"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
OpenBSD)
|
||||||
|
zstyle ':completion:*:*:killall:*:processes-names' command "ps -U '${USERNAME}' -o command"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# case insensitivity, partial matching, substitution
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{A-Z}={a-z}' 'm:{a-z}={A-Z}' 'r:|[-._]=* r:|=*' 'l:|=* r:|=*' '+l:|=*'
|
||||||
|
|
||||||
|
# compctl should die
|
||||||
|
zstyle ':completion:*' use-compctl false
|
||||||
|
|
||||||
|
# dont suggest the first parameter again
|
||||||
|
zstyle ':completion:*:ls:*' ignore-line yes
|
||||||
|
zstyle ':completion:*:rm:*' ignore-line yes
|
||||||
|
zstyle ':completion:*:scp:*' ignore-line yes
|
||||||
|
zstyle ':completion:*:diff:*' ignore-line yes
|
||||||
|
|
||||||
|
# Keep track of other people accessing the box
|
||||||
|
watch=( all )
|
||||||
|
export LOGCHECK=30
|
||||||
|
export WATCHFMT=$'\e[01;36m'" -- %n@%m has %(a.Logged In.Logged out) --"$'\e[00;00m'
|
||||||
|
|
||||||
|
# directory hashes
|
||||||
|
if [[ -d "${HOME}/sandbox" ]] ; then
|
||||||
|
hash -d sandbox="${HOME}/sandbox"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -d "${HOME}/work" ]] ; then
|
||||||
|
hash -d work="${HOME}/work"
|
||||||
|
|
||||||
|
for dir in "${HOME}"/work/*(N-/) ; do
|
||||||
|
hash -d $(basename "${dir}")="${dir}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
# extras
|
||||||
|
if [[ -d "${HOME}/.zsh" ]] ; then
|
||||||
|
for file in "${HOME}"/.zsh/*(N.x:t) ; do
|
||||||
|
source "${HOME}/.zsh/${file}"
|
||||||
|
done
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue