" Shinnok's VIM rc " " Use Vim settings, rather than Vi settings (much better!). " This must be first, because it changes other options as a side effect. set nocompatible " show the cursor position all the time set ruler " do incremental searching set incsearch " In many terminal emulators the mouse works just fine, thus enable it. " if has('mouse') " set mouse=a " endif " Set UTF-8 encoding "set enc=utf-8 "set fenc=utf-8 "set termencoding=utf-8 syntax on " Set indentation of previous line set autoindent set smartindent "set cindent " Configure tabwidth and insert spaces instead of tabs set tabstop=4 " tab width is 4 spaces set shiftwidth=4 " indent also with 4 spaces set expandtab " expand tabs to spaces " Wrap lines at 80 chars. set textwidth=80 " Turn line numbers on "set number set ignorecase set smartcase "Override the 'ignorecase' option if the search pattern contains upper case characters set hlsearch "set spell set title set showmode set backspace=indent,eol,start " Allow backspacing over everything in insert mode "set copyindent " Other crazy shit " Enhanced keyboard mappings " " in normal mode F2 will save the file nmap :w " in insert mode F2 will exit insert, save, enters insert again imap :wi " switch between header/source with F4 map :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp, " build using makeprg with map :make " build using makeprg with map :make clean all " goto definition with F12 map " in instert mode Ctrl+Space will do autocompletion imap