set nocompatible " must be first line set background=dark " Assume a dark background set esckeys " so that arrows work correcty filetype plugin indent on " Automatically detect file types. syntax on " syntax highlighting set mouse=a " automatically enable mouse usage scriptencoding utf-8 set history=100 set backspace=indent,eol,start " backspace for dummys set linespace=0 " No extra spaces between rows set nu " Line numbers on "set nonumber " line numbers off set showmatch " show matching brackets/parenthesis set incsearch " find as you type search set hlsearch " highlight search terms set ignorecase " case insensitive search set smartcase " case sensitive when uc present set scrolloff=5 " minimum lines to keep above and below cursor set tabstop=2 set shiftwidth=2 set expandtab set ofu=syntaxcomplete#Complete " should turn on autocomplete autocmd FileType c set omnifunc=ccomplete#Complete inoremap pumvisible() \|\| &omnifunc == '' ? \ "\C-n>" : \ "\C-x>\C-o>=pumvisible() ?" . \ "\"\\c-n>\\c-p>\\c-n>\" :" . \ "\" \\bs>\\C-n>\"\" imap