|
|
|
@ -301,9 +301,9 @@ nmap ;A :,!hexanonymize.py --case --hex-only<CR>
|
|
|
|
|
nmap <silent> ;b :!git blame "%"<CR>
|
|
|
|
|
nmap <silent> ;c :,!center.py<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
|
|
|
|
|
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 :Done<CR>
|
|
|
|
|
nmap ;f :,!fold -s -w 120 \| sed 's/[[:space:]]*$//'<CR>
|
|
|
|
@ -529,7 +529,7 @@ function! WriteRunDebug()
|
|
|
|
|
:let $DEBUG=""
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
function! WriteRunExampleLine()
|
|
|
|
|
function! WriteRunLine()
|
|
|
|
|
:w
|
|
|
|
|
if &filetype == 'go'
|
|
|
|
|
" TODO: consider switching this to go build and then run the binary as
|
|
|
|
|