"kereoz - a simple .vimrc :) " wget http://kereoz.org/.vimrc " vim, not vi ! set nocompatible "xterm behavior behave xterm "long lines set nowrap set wildmenu " command-line completion shows a list of matches set wildmode=longest,list:longest,full " Bash-vim completion behavior " always display status bar set ls=2 " syntax highlighting syntax on " highlight matching strings set hlsearch " case insensitive search set ignorecase " Match 'word' case-insensitive and 'Word' case-sensitive set smartcase " Incremental search (like in emacs) set incsearch " tab size reduced to the equivalent of 4 spaces (good for python) set ts=4 " indent/unindent by 4 spaces set shiftwidth=4 " tab = tab at the beginning of a line (tabstop=8) set smarttab " tab is (ts) * spaces set expandtab " backspace removes 4 spaces where appropriate set softtabstop=4 " keep consistent identation when inserting a new line set autoindent " Highlight corresponding parenthesis set sm " Set this to disable swap files "set noswapfile " Set this to disable backup files "set nobackup " :w!! will sudo (in case you don't have the permission to write) cmap w!! %!sudo tee > /dev/null % nmap :bn nmap :bp