updated .vimrc

pull/2/head
Hari Sekhon 4 years ago
parent cf8c25b83e
commit b2588f743b

@ -301,9 +301,9 @@ nmap ;A :,!hexanonymize.py --case --hex-only<CR>
nmap <silent> ;b :!git blame "%"<CR> nmap <silent> ;b :!git blame "%"<CR>
nmap <silent> ;c :,!center.py<CR> nmap <silent> ;c :,!center.py<CR>
nmap <silent> ;e :,!center.py -s<CR> nmap <silent> ;e :,!center.py -s<CR>
" parses current example line and passes as stdin to bash to quickly execute examples from code - see WriteRunExampleLine() further down for example " parses current example line and passes as stdin to bash to quickly execute examples from code - see WriteRunLine() further down for example
" messes up interactive vim (disables vim's arrow keys) - calling a terminal reset fixes it " messes up interactive vim (disables vim's arrow keys) - calling a terminal reset fixes it
nmap <silent> ;E :call WriteRunExampleLine()<CR> :!reset<CR><CR> nmap <silent> ;E :call WriteRunLine()<CR> :!reset<CR><CR>
nmap <silent> ;d :r !date '+\%F \%T \%z (\%a, \%d \%b \%Y)'<CR>kJ nmap <silent> ;d :r !date '+\%F \%T \%z (\%a, \%d \%b \%Y)'<CR>kJ
nmap <silent> ;D :Done<CR> nmap <silent> ;D :Done<CR>
nmap ;f :,!fold -s -w 120 \| sed 's/[[:space:]]*$//'<CR> nmap ;f :,!fold -s -w 120 \| sed 's/[[:space:]]*$//'<CR>
@ -529,7 +529,7 @@ function! WriteRunDebug()
:let $DEBUG="" :let $DEBUG=""
endfunction endfunction
function! WriteRunExampleLine() function! WriteRunLine()
:w :w
if &filetype == 'go' if &filetype == 'go'
" TODO: consider switching this to go build and then run the binary as " TODO: consider switching this to go build and then run the binary as

Loading…
Cancel
Save