···11+syntax on
22+colors patine
33+44+" weird defaults
55+set tabstop=4
66+set scrolloff=10
77+set shiftwidth=4
88+set hlsearch
99+set smartcase
1010+set t_Co=256 " it's 2019 ffs
1111+set backspace=indent,eol,start
1212+set wildmode=longest,list,full
1313+map <F1> <Esc>
1414+imap <F1> <Esc>
1515+1616+" Protect changes between writes. Default values of
1717+" updatecount (200 keystrokes) and updatetime
1818+" (4 seconds) are fine
1919+set swapfile
2020+set directory^=~/.vim/swap//
2121+2222+" protect against crash-during-write
2323+set writebackup
2424+" but do not persist backup after successful write
2525+set nobackup
2626+" use rename-and-write-new method whenever safe
2727+set backupcopy=auto
2828+" patch required to honor double slash at end
2929+if has("patch-8.1.0251")
3030+ " consolidate the writebackups -- not a big
3131+ " deal either way, since they usually get deleted
3232+ set backupdir^=~/.vim/backup//
3333+end
3434+3535+" persist the undo tree for each file
3636+set undofile
3737+set undodir^=~/.vim/undo//
3838+3939+" quickfix shortcuts
4040+nmap ]q :cnext<cr>
4141+nmap ]Q :clast<cr>
4242+nmap [q :cprev<cr>
4343+nmap [Q :cfirst<cr>
4444+4545+" shortcutz
4646+nnoremap <CR> :nohlsearch<CR><CR> " enter clears hl
4747+map <silent> <F4> :make<cr><cr><cr> " make all the things
4848+set pastetoggle=<C-p> " control+p to toggle pasting
4949+5050+" mail
5151+autocmd FileType mail setlocal tw=72 spell spelllang=en