- " Vim color file
- " Name: typofree.vim
- " Maintainer: Michiel Roos <vim@typofree.org>
- " Created: ma 06 okt 2008 07:29:31 pm CEST
- " Last Modified: wo 25 feb 2009 09:41:12 am CET
- " License: This file is placed in the public domain.
- " Version: 0.1 alpha
- "
- " This is a 256 color theme for xterm-256color
- set background=dark
- hi clear
- syntax reset
- endif
- let colors_name = "typofree"
- hi Normal ctermfg=247 ctermbg=NONE cterm=NONE
- hi SpecialKey ctermfg=127 ctermbg=NONE cterm=NONE " ^M
- hi NonText ctermfg=20 ctermbg=NONE cterm=NONE " e.g. the + symbol on line wrap
- hi PreProc ctermfg=68 ctermbg=NONE cterm=NONE
- hi Cursor ctermfg=130 ctermbg=NONE cterm=NONE
- hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
- hi CursorColumn ctermfg=NONE ctermbg=234 cterm=NONE
- hi DiffAdd ctermfg=NONE ctermbg=22 cterm=NONE
- hi DiffDelete ctermfg=NONE ctermbg=52 cterm=NONE
- hi DiffChange ctermfg=NONE ctermbg=17 cterm=NONE
- hi DiffText ctermfg=NONE ctermbg=NONE cterm=underline
- hi ModeMsg ctermfg=65 ctermbg=NONE cterm=NONE
- hi MoreMsg ctermfg=65 ctermbg=NONE cterm=NONE
- hi Question ctermfg=65 ctermbg=NONE cterm=NONE
- hi Pmenu ctermfg=16 ctermbg=23 cterm=NONE
- hi PmenuSel ctermfg=65 ctermbg=23 cterm=NONE
- hi PmenuSbar ctermfg=16 ctermbg=23 cterm=NONE
- hi PmenuThumb ctermfg=65 ctermbg=23 cterm=NONE
- hi IncSearch ctermfg=209 ctermbg=88 cterm=NONE
- hi Search ctermfg=209 ctermbg=88 cterm=NONE
- "hi NonText ctermfg=38 ctermbg=NONE cterm=NONE
- hi Visual ctermfg=231 ctermbg=60 cterm=NONE
- hi Error ctermfg=231 ctermbg=88 cterm=NONE
- hi FoldColumn ctermfg=88 ctermbg=NONE cterm=NONE
- hi Folded ctermfg=108 ctermbg=23 cterm=NONE
- hi StatusLineNC ctermfg=94 ctermbg=234 cterm=NONE
- hi StatusLine ctermfg=208 ctermbg=236 cterm=NONE
- hi VertSplit ctermfg=16 ctermbg=23 cterm=NONE
- " Tab menu
- hi TabLineSel ctermfg=208 ctermbg=NONE cterm=NONE
- hi TabLineFill ctermfg=94 ctermbg=236 cterm=underline
- hi TabLine ctermfg=94 ctermbg=236 cterm=underline
- hi Comment ctermfg=240 ctermbg=NONE cterm=NONE
- hi Todo ctermfg=16 ctermbg=94 cterm=NONE
- hi String ctermfg=65 ctermbg=NONE cterm=NONE " 'blah'
- "hi Character ctermfg=65 ctermbg=NONE cterm=NONE
- hi Number ctermfg=88 ctermbg=NONE cterm=NONE
- hi Boolean ctermfg=127 ctermbg=NONE cterm=NONE
- hi Float ctermfg=88 ctermbg=NONE cterm=NONE
- hi Constant ctermfg=127 ctermbg=NONE cterm=NONE
- hi Identifier ctermfg=68 ctermbg=NONE cterm=NONE " the text in $blah
- hi Function ctermfg=137 ctermbg=NONE cterm=NONE " init() substr()
- hi Define ctermfg=28 ctermbg=NONE cterm=NONE " function
- hi Repeat ctermfg=130 ctermbg=NONE cterm=NONE " foreach while
- hi Label ctermfg=130 ctermbg=NONE cterm=NONE "
- hi Include ctermfg=28 ctermbg=NONE cterm=NONE " require include
- hi Type ctermfg=28 ctermbg=NONE cterm=NONE
- hi StorageClass ctermfg=28 ctermbg=NONE cterm=NONE
- hi Structure ctermfg=28 ctermbg=NONE cterm=NONE " class ->
- hi Typedef ctermfg=28 ctermbg=NONE cterm=NONE
- hi Special ctermfg=88 ctermbg=NONE cterm=NONE " () {} []
- hi SpecialChar ctermfg=88 ctermbg=NONE cterm=NONE " hex, ocatal etc.
- " hi Delimiter ctermfg=88 ctermbg=NONE cterm=NONE
I look at a terminal window a lot during the course of the day. I also use VIM quite a lot for editing configuration files and scripts. I was really happy when I discovered that VIM can do syntax highlighting so I can look at pretty colors. Pretty colors make my life behind the screen more bearable.
I was happily coding until I came across a page explaining about 256 color terminals and 256 color support in VIM. Of course I wanted this too. The normal 16 color themes are all quite 'hard' on the eyes. The 256 color based themes are much easier on the eyes. I tried a couple of themes. I liked zenburn the most.
But soon I learnt how to make my own colorscheme and use that. It took me a while to add the last bits of color to it. I only recently learnt about the joys of 'tab mode' in VIM and just last week I reworked the 'vimdiff' colors.
I don't use gvim at all, so I only have the colorscheme for terminals. Here it is:
Save this in a file, store it under a name like 'typofree.vim' and put it in the folder ~/.vim/colors/
Now you can load your theme using the following command from within VIM:
colorscheme typofree
Great!
Now I changed my .vimrc to include the following snippet that makes my coloscheme load automagically when starting VIM from a 256 color capable terminal:
- " Set up pretty colors
- if &term ==? "xterm-256color" || &term ==? "screen-256color-bce"
- set t_Co=256
- colorscheme typofree
- else
- colorscheme default
- endif
That's it. Enjoy!
Cut and paste goodness can be found in the scripts section.



%s/^\s\{}\d\{}\.\n\s\{}//g
Btw: your timtab feed is broken: links are sometimes prefixed with http:// and sometimes with https://