if !has('nvim') colorscheme evening endif set confirm set noswapfile set termguicolors set autoread set clipboard=unnamedplus augroup setup autocmd! " Triger `autoread` when files changes on disk autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif " Notification after file change autocmd FileChangedShellPost * \ echohl WarningMsg | echo "File changed on disk. Buffer reloaded." | echohl None augroup end set scrolloff=4 set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab set smartindent set autoindent set smarttab set wrap set ignorecase set smartcase set incsearch set hlsearch set number augroup numbertoggle autocmd! autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif augroup END " let g:netrw_banner=0 " let g:netrw_liststyle=3 " let g:netrw_browse_split=4 " let g:netrw_altv=1 " let g:netrw_winsize=25 set nolazyredraw set updatetime=300 set ttimeoutlen=50 set timeoutlen=1000 set history=1000 set mouse=nv set cursorline set splitbelow set splitright set completeopt=menu,menuone,preview,noinsert,noselect set guicursor=a:block,i:ver20,v-r:hor20 " The epico quickfix list packadd cfilter function! RemoveQFItem() let curqfidx = line('.') - 1 let qfall = getqflist() call remove(qfall, curqfidx) call setqflist(qfall, 'r') execute curqfidx + 1 . "cfirst" :copen endfunction :command! RemoveQFItem :call RemoveQFItem() " Use map to only map dd in the quickfix window. Requires +localmap autocmd FileType qf map dd :RemoveQFItem " The holy leader key let g:mapleader="," map " Drag lines nn ddkP vn :m '<-2gv=gv nn ddp vn :m '>+1gv=gv " Take a peek at netrw nn :Lexplore:vertical resize 30 " Paste in insert mode ino "+pa " Clear search nn :nohlsearch " Better redo nn U nn " Peep the registers nn r :Telescope registers " Paste and keep the " register nn p "_dP " on leader vs, run mksession! .vims nn vs :mksession! .vims nn vl :source .vims