""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " " " A VIMRC FOR THE MODERN ERA " " " " author'd: jwdashel " " created: 8/24/2020; spokane valley, wa " " " " " " notes: assembled from ghosts of vimrcs past " " to them, i pay my respects " " " " " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""" " GIVEN TWEAKS " adjustments to make vim sane " set nocompatible syntax on set nostartofline set visualbell set mouse="" set cmdheight=2 set history=1000 set timeout timeoutlen=5000 ttimeoutlen=100 set showcmd "" files set hidden set wildmenu set wildmode=longest,list set confirm filetype indent on filetype plugin on au! BufNewFile,BufRead *.fish setf fish "" swp files set noswapfile set nobackup set nowritebackup "" insert mode set backspace=indent,eol,start "" normal mode map Y y$ nnoremap j gj nnoremap k gk nnoremap q q: "" visual mode vmap > >gv vmap < : let mapleader="_" nmap w :set list! nmap n :NERDTreeToggle "" instert mode set autoindent set smartindent set smarttab " """"""""""""""""""""""""""""" """"""""""" " PLUGINS " call plug#begin('~/.vim/plugged') Plug 'tpope/vim-surround' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-unimpaired' Plug 'tpope/vim-eunuch' Plug 'tpope/vim-speeddating' Plug 'tpope/vim-commentary' Plug 'preservim/nerdtree' Plug 'vim-scripts/taglist.vim' Plug 'itchyny/lightline.vim' Plug 'michaeljsmith/vim-indent-object' Plug 'easymotion/vim-easymotion' Plug 'mileszs/ack.vim' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' Plug 'mike-hearn/vim-combosearch' call plug#end() """"""""""" " PLUGIN CONFIGURE let g:lightline = { \ 'colorscheme': 'Tomorrow' , \ 'active': { \ 'left': [ [ 'mode', 'paste' ], \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ], \ 'right': [ [ 'lineinfo' ], \ [ 'percent' ], \ [ 'fileformat', 'fileencoding', 'filetype', 'bufnum' ] ] \ }, \ 'component': { \ 'bufnum': 'b%n' \ }, \ 'component_function': { \ 'gitbranch': 'FugitiveHead' \ }, \ } hi EasyMotionTarget2Second ctermfg=DarkRed ctermbg=none hi EasyMotionTarget2First ctermfg=DarkRed ctermbg=none nnoremap :Buffers nnoremap :Files nnoremap :ComboSearch " """""""""""""""""""""""""""""