Makes using repeater a bit easier
This commit is contained in:
parent
213ec0e3eb
commit
30faa7138c
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue