set noerrorbells set tabstop=2 softtabstop=2 set shiftwidth=2 set expandtab set smartindent set nu set nowrap set smartcase set noswapfile set nobackup set undodir=~/.vim/undodir set undofile set incsearch set relativenumber set splitbelow set nocompatible "set colorcolumn=80 highlight ColorColumn ctermbg=0 guibg=lightgrey call plug#begin('~/.vim/plugged') Plug 'morhetz/gruvbox' Plug 'preservim/nerdtree' Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'tpope/vim-fugitive' Plug 'vim-scripts/DoxygenToolkit.vim' Plug 'vim-scripts/taglist.vim' Plug 'sheerun/vim-polyglot' Plug 'xolox/vim-session' Plug 'xolox/vim-misc' Plug 'fedorov7/vim-uefi' Plug 'romainl/Apprentice' call plug#end() colorscheme gruvbox "colorscheme apprentice set bg=dark let mapleader=" " "Trailing whitespaces highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ au BufWinEnter * match ExtraWhitespace /\s\+$/ au InsertEnter * match ExtraWhitespace /\s\+\%#\@t :NERDTreeToggle "Remove all trailing whitespace by pressing F5 nnoremap :let _s=@/:%s/\s\+$//e:let @/=_s "Paste in visual mode without overwriting yank buffer vnoremap p "_dP let g:session_autosave='no'