" Ensure that we are in modern vim mode, not backwards-compatible vi mode set nocompatible set backspace=indent,eol,start execute pathogen#infect() " Enable filetype detection and syntax hilighting syntax on filetype on filetype indent on filetype plugin on set smartindent " Search betterer set incsearch set hlsearch set ignorecase set smartcase " Visual setup set number set noshowmode set title set showcmd set laststatus=2 set background=dark let g:materialbox_italic=1 colorscheme materialbox set t_ut= let g:airline_theme='lucius' let g:airline_powerline_fonts=1 " highlight long lines (over 80 char) if exists('+colorcolumn') set colorcolumn=80 else endif if exists('+mouse') set mouse=a else endif " look for tags file along path set tags=tags;/ " swapfiles to /tmp set directory=/tmp " F5 to trim trailing whitespace map :let _s=@/ :%s/\s\+$//e :let @/=_s :nohl :unlet _s " NERDTree binding map :NERDTreeToggle nmap f :NERDTreeFind " FZF set rtp+=/usr/local/opt/fzf nmap :Files nmap :GFiles " Ack if executable('ag') let g:ackprg = 'ag --vimgrep' endif nmap a :Ack! " quickfix nmap c :cclose nmap C :copen " supertab let g:SuperTabDefaultCompletionType = "" " set light mode? if !empty($LC_LIGHT_BG) colorscheme default set background=light let g:airline_theme='light' endif