" WARNING: This file is automatically managed by ansible, any changes in it will be discarded on configuration reload
" vim: syntax=vim

syntax on
set backspace=2

set autoindent
set shiftwidth=2
set expandtab

set nocompatible " allow not-in-vi features
set hlsearch " highlight search matches
set incsearch " incremental search on
set tabstop=4 " set tabstop to 4
set softtabstop=2 " set tabstop to 4
set shiftwidth=4 " autoindenter 'indent level' width
set history=120 " save last 120 commands in history
set ruler " show status line on last line
set linebreak " break long lines when displaying
set restorescreen " restore screen state after exit
set number " show line numbers on left
set whichwrap=b,s,[,],<,>,h,l " allow cursor keys to move over line-ends
let c_space_errors=1
set tabpagemax=100 " do not limit number of tabs significantly

" more bash-like tab completion
set wildmode=longest,list,full
set wildmenu

set mouse=a

set directory=~/.vim/swapfiles//,.,~/tmp,/var/tmp,/tmp
