Makes using repeater a bit easier

This commit is contained in:
Jonathan Hodgson 2020-05-19 13:59:25 +01:00
parent 213ec0e3eb
commit 30faa7138c

View file

@ -6,15 +6,24 @@
" Settings to make life easier
set hidden
setfiletype html
set nosplitright
set nosplitbelow
let s:pyscript = resolve(expand('<sfile>:p:h') . '/repeater.py')
function! RepeaterAction(...)
execute 'py3file ' . s:pyscript
windo setfiletype request
exec "wincmd h"
endfunc
command! -nargs=* RepeaterSetup call RepeaterAction('setup', <f-args>)
command! RepeaterSubmitBuffer call RepeaterAction('submit')
" Bind forward to <leader>f
nnoremap <leader>f :RepeaterSubmitBuffer<CR>