"""""""""""""""""""""""""""""""" " General """""""""""""""""""""""""""""""" " set command history to 1000 lines. set history=1000 " enable file type dependent behavior. filetype plugin on filetype indent on " auto-detect changes on files and reload. set autoread " use , as map leader. let mapleader="," let g:mapleader="," " quick save with ,w nmap w :w! " keep at least 7 lines above cursor. set so=7 set ruler set cmdheight=2 set hid " set correct backspace settings. set backspace=eol,start,indent set whichwrap+=<,>,h,l """"""""""" " Searching """"""""""" set hlsearch set incsearch " ignore case when searching. set ignorecase set smartcase set lazyredraw set magic set showmatch set mat=2 set noerrorbells set novisualbell set t_vb= set tm=500 syntax enable try colorscheme desert catch endtry set background=dark set encoding=utf8 set ffs=unix,dos,mac set nobackup set nowb set noswapfile set expandtab set smarttab set shiftwidth=4 set tabstop=4 set lbr set tw=500 set autoindent set smartindent set wrap map :noh map l :bnext map h :bprev map tn :tabnew map to :tabonly map tc :tabclose map tm :tabmove map t :tabnext set laststatus=2 set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l\ \ Column:\ %c map 0 ^