[raw] [dotfiles.tar.gz]
   1 set vb t_vb=
   2 set guioptions-=T
   3 
   4 set showtabline=2 guitabtooltip=%F
   5 set guitablabel=%N:%t%{&mod?'*':''}
   6 
   7 set guifont=Liberation\ Mono\ 10
   8 set number cursorline colorcolumn=81
   9 set guicursor+=a:blinkwait500-blinkon500-blinkoff500
  10 
  11 au FocusGained * call writefile([v:servername], expand('~/.vim/vimpid'))
  12 
  13 " Colors {{{
  14 
  15 hi clear
  16 syntax on
  17 
  18 let s:bg = '#fdfdfd'
  19 let s:fg = '#111111'
  20 
  21 let s:str = '#800000'
  22 let s:num = '#000080'
  23 let s:com = '#999999'
  24 let s:msg = '#008000'
  25 let s:gui = '#e7e7e7'
  26 let s:todo = '#ffa500'
  27 
  28 function! s:hi(name, ...) " {{{
  29     let l:exec  = ['hi!']
  30     let l:exec += [a:name]
  31     let l:exec += [a:0 > 0 ? 'guifg='.a:1 : '']
  32     let l:exec += [a:0 > 1 ? 'guibg='.a:2 : '']
  33     let l:exec += ['gui=NONE'.(a:0 > 2 ? ','.a:3 : '')]
  34 
  35     exec join(l:exec, ' ')
  36 endfunction " }}}
  37 function! s:ln(to, from) " {{{
  38     exec join(['hi! link', a:to, a:from], ' ')
  39 endfunction " }}}
  40 
  41 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  42 
  43 call s:hi('Normal', s:fg, s:bg)
  44 call s:hi('Visual', 'NONE', 'NONE', 'reverse')
  45 
  46 call s:hi('Number', s:num)
  47 call s:hi('Boolean', s:fg)
  48 call s:hi('Comment', s:com)
  49 call s:hi('Constant', s:str)
  50 
  51 call s:hi('Statement', s:fg, 'NONE', 'bold')
  52 call s:ln('Type', 'Statement')
  53 call s:ln('Identifier', 'Boolean')
  54 call s:ln('Operator', 'Boolean')
  55 call s:ln('PreProc', 'Statement')
  56 
  57 call s:ln('Special', 'Boolean')
  58 call s:ln('SpecialChar', 'Constant')
  59 call s:ln('SpecialComment', 'Comment')
  60 
  61 call s:hi('Todo', s:todo, 'NONE')
  62 call s:hi('Error', s:str, 'NONE')
  63 
  64 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  65 
  66 call s:hi('NonText', '#bbbbbb', 'NONE')
  67 call s:ln('SpecialKey', 'NonText')
  68 
  69 call s:ln('Search', 'Underlined')
  70 call s:hi('IncSearch', s:fg, s:todo)
  71 call s:hi('MatchParen', s:fg, s:com)
  72 
  73 call s:hi('DiffAdd', s:msg, s:bg, 'reverse')
  74 call s:hi('DiffChange', s:todo, s:bg, 'reverse')
  75 call s:hi('DiffDelete', s:str, s:bg, 'reverse')
  76 call s:hi('DiffText', 'NONE', 'NONE', 'reverse')
  77 
  78 call s:hi('Underlined', 'NONE', 'NONE', 'underline')
  79 
  80 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  81 
  82 call s:hi('SignColumn', 'NONE', 'NONE')
  83 call s:hi('LineNr', s:com, 'NONE')
  84 
  85 call s:ln('Folded', 'LineNr')
  86 call s:ln('FoldColumn', 'Folded')
  87 
  88 call s:hi('CursorLine', 'NONE', s:gui)
  89 call s:hi('CursorLineNr', s:com, s:gui)
  90 
  91 call s:ln('ColorColumn', 'CursorLine')
  92 call s:hi('VertSplit', s:gui, 'NONE')
  93 
  94 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  95 
  96 call s:hi('Title', s:fg)
  97 call s:ln('Directory', 'Title')
  98 call s:ln('Question', 'Title')
  99 
 100 call s:hi('ModeMsg', s:fg)
 101 call s:ln('MoreMsg', 'Title')
 102 call s:ln('WarningMsg', 'Error')
 103 call s:ln('ErrorMsg', 'Error')
 104 
 105 call s:hi('WildMenu', s:fg, s:bg, 'reverse')
 106 call s:ln('Pmenu', 'StatusLine')
 107 call s:ln('PmenuSel', 'WildMenu')
 108 
 109 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 110 
 111 call s:hi('StatusLine', s:fg, s:gui)
 112 call s:hi('StatusLineNC', s:fg, s:bg, 'reverse')
 113 
 114 call s:ln('User1', 'StatusLine')
 115 call s:ln('User2', 'ModeNormal')
 116 
 117 call s:hi('ModeNormal', s:fg, s:bg, 'reverse')
 118 call s:hi('ModeInsert', s:num, s:bg, 'reverse')
 119 call s:hi('ModeVisual', s:todo, s:bg, 'reverse')
 120 call s:hi('ModeReplace', s:str, s:bg, 'reverse')
 121 
 122 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 123 
 124 call s:ln('JavaScriptNumber', 'Number')
 125 call s:ln('JavaScriptVariable', 'Statement')
 126 call s:ln('JavaScriptObjectLabel', 'Boolean')
 127 
 128 call s:ln('LuaFunction', 'Statement')
 129 call s:ln('LuaOperator', 'Statement')
 130 
 131 call s:hi('DiffAdded', s:msg, s:bg)
 132 call s:hi('DiffChanged', s:todo, s:bg)
 133 call s:hi('DiffRemoved', s:str, s:bg)
 134 
 135 " }}}