set autoindent
" command editor opens on (^V^R)
set cedit=^R
" extended regular expressions
set extended
" file completion on tab (^V^V^V<tab>)
set filec=^V	
set noflash
" case-insensitive searches unless upper-case
set iclower
set matchtime=1
" no read-only lock
set nolock
set path=.
set ruler
set searchincr
set showmatch
set tags=./TAGS
set tildeop
set windowname
" wrap through end of file when searching
set wrapscan


set shell=/bin/sh
set shiftwidth=4
set tabstop=4
set wrapmargin=4

map ^V ^V  :w^M:suspend^M
map Q {j!}par P+. Q+__* g1 w80^M

map ^V y :^Rp:.,$!pbcopy^M:q^M
map ^V p :read !pbpaste
map K wb"zyw:^Ro:!man ^["zp^M
"map K wb"zyw:^Ro:!open x-man-page://^["zp^M^M

map ^V f :^R:!env FZF_DEFAULT_COMMAND='git ls-files' fzf >> %^M:edit^MGIEdit ^[^M^W:bg^M

map & wb"zye:^Ro:!git grep ^\ ["zp^M
"map & wb"zye:^R:!echo % >> %^M:edit^MGI:!git grep  ^[h"zpwi^X7c fzf >> ^[^M:^R:edit^MGf:l"zyt:hDIEdit + ^[h"zp^M^W:bg^M

map gb :vsplit^M"zy1G:edit /tmp^MG:read !git blame -- #^M:^R^Mo^["zp!Gwc -l^[I:^[^M
