September 13, 2007, at 11:22 AM
Setup /

Vim

I know, it is in some ways old school but man I do love Vim! To be more precise I dislike all-in-IDEs. Slowly but surely (the learning curve is steep) I have set-it up to do some of the things I want ;)

.vimrc

" make sure language is default i.e. English
language C
set langmenu=none

" its vim no vi ;)
set nocompatible

" allow backspacing over everything in insert mode
set backspace=indent,eol,start

" keep 50 lines of command line history
set history=50

" show the cursor position all the time
set ruler

" display incomplete commands
set showcmd

" enable the mouse
set mouse=a

" do incremental searching
set incsearch

" activate syntax highlighting
syntax enable

" highlights cursor line
set cursorline

" python style tabs
set tabstop=4
set shiftwidth=4
set expandtab

" so the windows take the full screen size in hauteur
set lines=999

" python helpers
filetype plugin on
au FileType python source $VIM/vimfiles/scripts/python.vim

" IDLE type execution
autocmd BufNewFile,BufRead *.py map <buffer> <F5> : w!<cr>:!python %<cr>
autocmd BufNewFile,BufRead *.py imap <buffer> <F5> <esc>:w!<cr>:!python %<cr>

" the very popular desert colorscheme for a reason
colorscheme desert

" don't need the toolbar in gVim
set guioptions-=T

" taglist
nnoremap <silent> <F8> :TlistToggle<CR>

" text with 78 characters
autocmd BufRead *.txt set tw=78

" no end of line whitespace
autocmd BufWrite * silent! %s/[\r \t]\+$//

plugins

TagList - sometimes useful code browser.
SnippetsEmu - we are all victims of the TextMate envy effect.