~ mico /.vimrc

vimrc with mouse support in terminal/putty (and screen, and 256 colors in screen, screenrc coming up next).
filetype plugin on
au FileType python source ~/.vim/scripts/python.vim
let g:allml_global_maps = 1
au! BufRead,BufNewFile *.dtpl           setfiletype htmldjango
set novisualbell
set noeb " no error bell
set directory=~/.backup//
set backupdir=~/.backup//
set history=500
set wildmode=list:longest,full
set showmode
set showcmd
set shortmess+=r


if has('syntax') && (&t_Co > 2)
  syntax on
endif

if (&t_Co >= 256)
        color crt
endif

set path=/home/mico/work

set nocompatible
set number
set hlsearch
set incsearch
set smartcase " if I put case variation in my search, it's cause I care

"
set ts=4 " tabs are 4 spaces long
set sw=4 " shift width 4 for  >> command
set noet " no expand tab

set showmatch " show matching brackets
set backspace=indent,eol,start " make that backspace key work the way it should

set laststatus=2 " make the last line where the status is two lines deep so you can see status always
set statusline=%F%m%r%h%w\ [%Y:%{&ff}]\ [A=\%03.3b]\ [0x=\%02.2B]\ [%l/%L,%v][%p%%]

let g:netrw_list_hide = ".*\.pyc$,^darcs.*,.*patch$,_darcs,_session_records,*.egg-info"

map <C-right> <ESC>:bn<CR>
map <C-left> <ESC>:bp<CR>
nnoremap <silent> <F8> :TlistToggle<CR>

# putty/terminal mouse
set ttymouse=xterm2
set mouse=a

# mouse scrolling (in putty/terminal)
map <M-Esc>[62~ <MouseDown>
map! <M-Esc>[62~ <MouseDown>
map <M-Esc>[63~ <MouseUp>
map! <M-Esc>[63~ <MouseUp>
map <M-Esc>[64~ <S-MouseDown>
map! <M-Esc>[64~ <S-MouseDown>
map <M-Esc>[65~ <S-MouseUp>
map! <M-Esc>[65~ <S-MouseUp>