set nocompatible " Use Vim defaults (much better!) set nobackup " Set backup to "off" set autowrite " Set autowrite to "on" set noignorecase " Do case sensitive matching set magic " use some magic in search patterns set incsearch " Incremental search set autoindent " set autoindent to "on" set mouse=civ " enable mouse in Command, insert and visual modes set nowrap " dont wrap long lines set sidescroll=1 " scroll 1 column at a time set textwidth=78 " always limit the width of text to 78 set showbreak="@" set backspace=2 " allow backspacing over everything in insert mode set tabstop=4 " number of spaces in a tab set shiftwidth=2 " number of spaces to use for each step of (auto)indent set scrolloff=2 " 3 lines of context set laststatus=2 " Allways show statusbar set ruler " Show cursor position set title set noerrorbells " no beeps set visualbell " terminal's visual bell turned off to make Vim quiet set t_vb= set smarttab set wildmode=longest,list " Show list of files when completing set showmode " Show the current mode set shortmess=atI " Abbreviate messages set showcmd " Show current uncompleted command set helpfile=$VIMRUNTIME/doc/help.txt.gz set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.inx,.out,.toc set viminfo='20,\"50 " .viminfo file, don't store more than 50 lines syntax on " turn on syntax hilighting for all files " colors if !has ("BeOS") if &t_Co > 2 hi StatusLine term=bold ctermbg=black ctermfg=brown hi StatusLineNC term=none ctermfg=red ctermbg=black hi Comment term=bold ctermfg=Black ctermbg=DarkGreen hi Constant term=underline ctermfg=Blue hi Special term=bold ctermfg=Blue hi String term=bold ctermfg=Gray hi Operator term=underline ctermfg=Brown hi Identifier term=underline ctermfg=Yellow hi Statement term=bold ctermfg=DarkGreen hi PreProc term=underline ctermfg=black ctermbg=DarkBlue hi Type term=bold ctermfg=Green hi ModeMsg cterm=bold ctermfg=Yellow hi IncSearch cterm=bold ctermbg=DarkRed ctermfg=Yellow hi Error term=reverse ctermbg=Red guibg=Orange hi Todo term=standout ctermbg=DarkGreen guifg=Green endif endif "" autocommands augroup cprog au! autocmd BufRead * set formatoptions=tcql nocindent comments& augroup END