Rev 363 | Blame | Compare with Previous | Last modification | View Log | RSS feed
" My Local settings for vim / gvim
"
" Last modified: 2007-10-25
" Turn on modelines, since gentoo turns them off
set modeline
" Turn on line numbering
set number
" Enable good tabbing options (Linux kernel style)
"set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab
" Make tab characters display as >...
set list
set listchars=tab:>.
set sm
" Enable good indenting
set noautoindent
set cindent
" 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>
" 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
" A good colorscheme for the terminal
"colorscheme darkblue
colorscheme zenburn
" 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
" Load skeletons for commonly used languages
autocmd BufNewFile *.c 0r ~/.vim/skel/skel.c
autocmd BufNewFile *.h 0r ~/.vim/skel/skel.h
autocmd BufNewFile *.cpp 0r ~/.vim/skel/skel.cpp
autocmd BufNewFile *.hpp 0r ~/.vim/skel/skel.hpp