Permalink
Browse files

Adding more stuff that I want copied

  • Loading branch information...
qrush committed Nov 30, 2008
1 parent 4477149 commit 5576344d1298549a6bb7ede281896b9d22c341db
Showing with 276 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 .gitmodules
  3. +1 −0 nerdtree
  4. +68 −0 themes/colors/vibrantink.vim
  5. +172 −0 themes/colors/vividchalk.vim
  6. +31 −0 vimrc
View
@@ -0,0 +1 @@
+*~
View
@@ -10,3 +10,6 @@
[submodule "vim-git"]
path = vim-git
url = git://github.com/tpope/vim-git.git
+[submodule "nerdtree"]
+ path = nerdtree
+ url = git://github.com/scrooloose/nerdtree.git
Submodule nerdtree added at f4c455
@@ -0,0 +1,68 @@
+" Vim color scheme
+"
+" Name: vibrantink.vim
+" Maintainer: Jo Vermeulen <jo.vermeulen@gmail.com>
+" Last Change: 30 Jul 2007
+" License: public domain
+" Version: 1.2
+"
+" This scheme should work in the GUI and in xterm's 256 color mode. It won't
+" work in 8/16 color terminals.
+"
+" I based it on John Lam's initial VibrantInk port to Vim [1]. Thanks to a
+" great tutorial [2], I was able to convert it to xterm 256 color mode. And
+" of course, credits go to Justin Palmer for creating the original VibrantInk
+" TextMate color scheme [3].
+"
+" [1] http://www.iunknown.com/articles/2006/09/04/vim-can-save-your-hands-too
+" [2] http://frexx.de/xterm-256-notes/
+" [3] http://encytemedia.com/blog/articles/2006/01/03/textmate-vibrant-ink-theme-and-prototype-bundle
+
+set background=dark
+hi clear
+if exists("syntax_on")
+ syntax reset
+endif
+
+let g:colors_name = "vibrantink"
+
+if has("gui_running")
+ highlight Normal guifg=White guibg=Black
+ highlight Cursor guifg=Black guibg=Yellow
+ highlight Keyword guifg=#FF6600
+ highlight Define guifg=#FF6600
+ highlight Comment guifg=#9933CC
+ highlight Type guifg=White gui=NONE
+ highlight rubySymbol guifg=#339999 gui=NONE
+ highlight Identifier guifg=White gui=NONE
+ highlight rubyStringDelimiter guifg=#66FF00
+ highlight rubyInterpolation guifg=White
+ highlight rubyPseudoVariable guifg=#339999
+ highlight Constant guifg=#FFEE98
+ highlight Function guifg=#FFCC00 gui=NONE
+ highlight Include guifg=#FFCC00 gui=NONE
+ highlight Statement guifg=#FF6600 gui=NONE
+ highlight String guifg=#66FF00
+ highlight Search guibg=White
+ highlight CursorLine guibg=#323300
+else
+ set t_Co=256
+ highlight Normal ctermfg=White ctermbg=Black
+ highlight Cursor ctermfg=Black ctermbg=Yellow
+ highlight Keyword ctermfg=202
+ highlight Define ctermfg=202
+ highlight Comment ctermfg=98
+ highlight Type ctermfg=White
+ highlight rubySymbol ctermfg=66
+ highlight Identifier ctermfg=White
+ highlight rubyStringDelimiter ctermfg=82
+ highlight rubyInterpolation ctermfg=White
+ highlight rubyPseudoVariable ctermfg=66
+ highlight Constant ctermfg=228
+ highlight Function ctermfg=220
+ highlight Include ctermfg=220
+ highlight Statement ctermfg=202
+ highlight String ctermfg=82
+ highlight Search ctermbg=White
+ highlight CursorLine cterm=NONE ctermbg=235
+endif
@@ -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
View
31 vimrc
@@ -0,0 +1,31 @@
+set nocompatible " We're running Vim, not Vi!
+syntax on " Enable syntax highlighting
+set ls=2 " allways show status line
+set tabstop=2 " numbers of spaces of tab character
+set shiftwidth=2 " numbers of spaces to (auto)indent
+set scrolloff=3 " keep 3 lines when scrolling
+set showcmd " display incomplete commands
+set hlsearch " highlight searches
+set incsearch " do incremental searching
+set ruler " show the cursor position all the time
+set visualbell t_vb= " turn off error beep/flash
+set novisualbell " turn off visual bell
+set nobackup " do not keep a backup file
+set number " show line numbers
+set ignorecase " ignore case when searching
+"set noignorecase " don't ignore case
+""set title " show title in console title bar
+"set ttyfast " smoother changes
+"""set ttyscroll=0 " turn off scrolling, didn't work well with PuTTY
+set modeline " last lines in document sets vim mode
+set modelines=3 " number lines checked for modelines
+set shortmess=atI " Abbreviate messages
+set nostartofline " don't jump to first character when paging
+set whichwrap=b,s,h,l,<,>,[,] " move freely between files
+"set viminfo='20,<50,s10,h
+""
+set autoindent " always set autoindenting on
+set smartindent " smart indent
+"""set cindent " cindent
+set autoindent
+set smarttab

0 comments on commit 5576344

Please sign in to comment.