summaryrefslogtreecommitdiffstats
path: root/.vimrc
blob: 1d359cc2134148dda01912c371711b423647cb22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
" bnewbold's .vimrc
" circa 04/2006

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

set history=50
set wildmode=list:longest,full
set showmode
set showcmd
set smartcase
set shiftwidth=4
set tabstop=4
set shiftround
set expandtab
set autoindent

autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class

" for Project Fortress
au BufNewFile,BufRead *.fsi,*.fss set ft=fortress

" for previewing reStructured text (.rst) in firefox
:command Rst :!rst2html.py "%" > /tmp/rstprev.html && firefox file:///tmp/rstprev.html
:nnoremap <C-p><C-r> :Rst<CR>