Wednesday, January 19, 2011

Mathematica TextMate Bundle

I've been working with David Howell on a TextMate bundle for Mathematica. Development has slowed as I find fewer and fewer things to change, to the point that I decided it was time to publish my fork of it in my blog in the hopes that someone somewhere finds it useful.

My .vimrc File

This is my .vimrc file.

syntax enable
set background=dark
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab
set smartindent
set hlsearch
highlight DiffAdd term=reverse cterm=bold ctermbg=green ctermfg=black
highlight DiffChange term=reverse cterm=bold ctermbg=cyan ctermfg=black
highlight DiffText term=reverse cterm=bold ctermbg=gray ctermfg=black
highlight DiffDelete term=reverse cterm=bold ctermbg=red ctermfg=black

" Shortcut to rapidly toggle `set list`
nmap l :set list!

" Use the same symbols as TextMate for tabstops and EOLs
set listchars=tab:▸\ ,eol:¬

"Invisible character colors
highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=#4a4a59

au FileType xml setlocal shiftwidth=2 tabstop=2 softtabstop=2 noexpandtab