" from sensible.vim set nocompatible set backspace=indent,eol,start set smarttab set nrformats-=octal set ttimeout set ttimeoutlen=100 set wildmenu set scrolloff=1 set sidescroll=1 set sidescrolloff=2 set display+=lastline if has('patch-7.4.2109') set display+=truncate endif set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ if v:version > 703 || v:version == 703 && has("patch541") set formatoptions+=j endif set autoread set history=1000 set tabpagemax=50 set viminfo^=! set sessionoptions-=options set viewoptions-=options if &t_Co == 8 && $TERM !~# '^Eterm' set t_Co=16 endif if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276')) set shell=/usr/bin/env\ bash endif set nolangremap if !(exists('g:did_load_filetypes') && exists('g:did_load_ftplugin') && exists('g:did_indent_on')) filetype plugin indent on endif if has('syntax') && !exists('g:syntax_on') syntax enable endif if empty(mapcheck('', 'i')) inoremap u endif if empty(mapcheck('', 'i')) inoremap u endif if exists(":DiffOrig") != 2 command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ \ | diffthis | wincmd p | diffthis endif if !exists('g:is_posix') && !exists('g:is_bash') && !exists('g:is_kornshell') && !exists('g:is_dash') let g:is_posix = 1 endif " Load matchit.vim, but only if the user hasn't installed a newer version. if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' runtime! macros/matchit.vim endif "set shiftwidth=2 " indent by 2 spaces when auto-indenting "set softtabstop=2 " indent by 2 spaces when hitting tab set list " show indent guides if has("syntax") syntax on " syntax highlighting endif filetype indent on " activates indenting for files set autoindent " auto indenting set copyindent " copy previous indent set smartindent set number " show line number set relativenumber " relative line numbers set noswapfile " disable swapfile set nobackup " get rid of annoying ~file set nowb " suppress creation of ~ files set ignorecase " ignore case when searching set smartcase " override ignorecase if search contains uppercase set incsearch " incremental search set hlsearch " highlight search matches set laststatus=2 " always show the status line set ruler " show the cursor position all the time set lazyredraw " redraw only when needed set mouse=a " enable mouse set noerrorbells " suppress audible bell set novisualbell " suppress bell blink nnoremap zz nnoremap zz