Subversion Repositories programming

Rev

Rev 363 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

" Local settings for vim / gvim
set number
set tabstop=4
set expandtab
set list
set listchars=tab:>.
set sm

"enable cindent
set noautoindent
set cindent

"make backspace remove a whole tab at a time
set softtabstop=4

"make autoindent use tab size of 4 spaces
set shiftwidth=4

" Show/Hide hidden Chars
map <silent> <F2> :set invlist<CR>

" Show/Hide found pattern (After search)
map <silent> <F3> :set invhlsearch<CR>

" Remove whitespace from end of lines
map <silent> <F4> :%s/\s\+$//g<CR>

" Run the currently editing python program
autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys.stderr=sys.stdout;\ py_compile.compile(r'%')\"
autocmd BufRead *.py nmap <F5> :!python %<cr> 

" Set html creation to use style sheets
let html_use_css = 1

" Set up Printer options
set printoptions=left:15mm,right:15mm,top:15mm,bottom:15mm,paper:A4,header:2
set printfont=courier_new:h7

colorscheme darkblue

" Bufferlist plugin
map <silent> <F6> :call BufferList()<CR>
let g:BufferListWidth = 25
let g:BufferListMaxWidth = 50
hi BufferSelected term=reverse ctermfg=white ctermbg=red cterm=bold
hi BufferNormal term=NONE ctermfg=black ctermbg=darkcyan cterm=NONE