Makes using repeater a bit easier

master
Jonathan Hodgson 4 years ago
parent 213ec0e3eb
commit 30faa7138c
  1. 9
      pappyproxy/interface/repeater/repeater.vim

@ -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>

Loading…
Cancel
Save