Subversion Repositories programming

Rev

Rev 363 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
440 ira 1
" My Local settings for vim / gvim
2
"
3
" Last modified: 2007-10-25
4
 
5
" Turn on modelines, since gentoo turns them off
6
set modeline
7
 
8
" Turn on line numbering
160 ira 9
set number
440 ira 10
 
11
" Enable good tabbing options (Linux kernel style)
12
"set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
362 ira 13
set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab
440 ira 14
 
15
" Make tab characters display as >...
160 ira 16
set list
17
set listchars=tab:>.
18
set sm
19
 
440 ira 20
" Enable good indenting
160 ira 21
set noautoindent
22
set cindent
23
 
24
" Show/Hide hidden Chars
25
map <silent> <F2> :set invlist<CR>
26
 
27
" Show/Hide found pattern (After search)
28
map <silent> <F3> :set invhlsearch<CR>
29
 
30
" Remove whitespace from end of lines
31
map <silent> <F4> :%s/\s\+$//g<CR>
32
 
33
" Set html creation to use style sheets
34
let html_use_css = 1
35
 
36
" Set up Printer options
37
set printoptions=left:15mm,right:15mm,top:15mm,bottom:15mm,paper:A4,header:2
38
set printfont=courier_new:h7
39
 
440 ira 40
" A good colorscheme for the terminal
41
"colorscheme darkblue
42
colorscheme zenburn
160 ira 43
 
44
" Bufferlist plugin
45
map <silent> <F6> :call BufferList()<CR>
46
let g:BufferListWidth = 25
47
let g:BufferListMaxWidth = 50
48
hi BufferSelected term=reverse ctermfg=white ctermbg=red cterm=bold
49
hi BufferNormal term=NONE ctermfg=black ctermbg=darkcyan cterm=NONE
50
 
440 ira 51
" Load skeletons for commonly used languages
52
autocmd BufNewFile *.c		0r ~/.vim/skel/skel.c
53
autocmd BufNewFile *.h		0r ~/.vim/skel/skel.h
54
autocmd BufNewFile *.cpp	0r ~/.vim/skel/skel.cpp
55
autocmd BufNewFile *.hpp	0r ~/.vim/skel/skel.hpp
56