set nocompatible set ignorecase set smartcase set backspace=indent,eol,start set autoindent set nostartofline set ruler set laststatus=2 set number set pastetoggle= set hlsearch set nowrap syntax on let mapleader = "," set shiftwidth=2 set softtabstop=2 set expandtab if has('persistent_undo') && isdirectory(expand('~').'/.vim/backups') silent !mkdir ~/.vim/backups > /dev/null 2>&1 set undodir=~/.vim/backups set undofile endif set foldmethod=indent "fold based on indent set foldnestmax=3 "deepest fold is 3 levels set nofoldenable "dont fold by default set history=1000 "Store lots of :cmdline history set showcmd "Show incomplete cmds down the bottom set showmode "Show current mode down the bottom set visualbell "No sounds set scrolloff=8 "Start scrolling when we're 8 lines away from margins set sidescrolloff=15 set sidescroll=1 nnoremap Q @q nnoremap nnoremap _ YP nnoremap d ddO nnoremap gf :vertical wincmd f silent! nmap :Gblame silent! nmap :FZF silent! nmap :NERDTreeToggle silent! map :NERDTreeFind silent! map :Rg call plug#begin('~/.vim/plugged') Plug 'itchyny/lightline.vim' Plug 'sheerun/vim-polyglot' Plug 'scrooloose/nerdtree' Plug '/usr/local/opt/fzf' Plug 'junegunn/fzf.vim' Plug 'jremmen/vim-ripgrep' call plug#end() so ~/.vim/autoload/ripgrep.vim set runtimepath^=~/.vim/bundle/vim-fugitive let g:NERDTreeMapActivateNode="" let g:NERDTreeMapPreview="" let g:lightline = { \ 'active': { \ 'left': [['mode', 'paste' ], ['readonly', 'filename', 'modified']], \ 'right': [['lineinfo'], ['percent'], ['fileformat', 'fileencoding']] \ } \ }