Subversion Repositories programming

Rev

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

Rev Author Line No. Line
160 ira 1
" Local settings for vim / gvim
2
set number
362 ira 3
" set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
4
set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab
160 ira 5
set list
6
set listchars=tab:>.
7
set sm
8
 
9
"enable cindent
10
set noautoindent
11
set cindent
12
 
362 ira 13
" make backspace remove a whole tab at a time
14
" set softtabstop=4
160 ira 15
 
362 ira 16
" make autoindent use tab size of 4 spaces
17
" set shiftwidth=4
160 ira 18
 
19
" Show/Hide hidden Chars
20
map <silent> <F2> :set invlist<CR>
21
 
22
" Show/Hide found pattern (After search)
23
map <silent> <F3> :set invhlsearch<CR>
24
 
25
" Remove whitespace from end of lines
26
map <silent> <F4> :%s/\s\+$//g<CR>
27
 
28
" Run the currently editing python program
29
autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys.stderr=sys.stdout;\ py_compile.compile(r'%')\"
30
autocmd BufRead *.py nmap <F5> :!python %<cr> 
31
 
32
" Set html creation to use style sheets
33
let html_use_css = 1
34
 
35
" Set up Printer options
36
set printoptions=left:15mm,right:15mm,top:15mm,bottom:15mm,paper:A4,header:2
37
set printfont=courier_new:h7
38
 
39
colorscheme darkblue
40
 
41
" Bufferlist plugin
42
map <silent> <F6> :call BufferList()<CR>
43
let g:BufferListWidth = 25
44
let g:BufferListMaxWidth = 50
45
hi BufferSelected term=reverse ctermfg=white ctermbg=red cterm=bold
46
hi BufferNormal term=NONE ctermfg=black ctermbg=darkcyan cterm=NONE
47