" do not keep a backup file set nobackup " wrap off set nowrap " tabs are only 2 characters set tabstop=2 " auto indent uses 2 charaters set shiftwidth=2 " spaces instead of tabs set expandtab " guess indentation set autoindent " expand command line using tab set wildchar= " show line numbers set number " fold using markers set foldmethod=marker " powerful backspaces set backspace=indent,eol,start " highlight search terms set hlsearch " dont wrap words set textwidth=0 " history set history=50 " 1000 undo levels set undolevels=1000 " show partial commands set showcmd " show matching braces set showmatch " auto-detect the file type filetype plugin indent on " on the syntax by default if has("syntax") syntax on endif " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif