I hereby claim:
- I am wheelsandmetal on github.
- I am schmutz (https://keybase.io/schmutz) on keybase.
- I have a public key ASDixfC3QEALln1RG5XbutnEQq4i76vPnO3xny7IBoKvmAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function! FindAndReplaceInputWordInNext3Lines() | |
call inputsave() | |
let word = input("> ") | |
call inputrestore() | |
execute printf(":.,.+3s/THISISAWORD/%s/g", word) | |
endfunction | |
au! FileType tex inoremap ,beg \begin{THISISAWORD}<Enter><Enter>\end{THISISAWORD}<Enter><Enter><++><Esc>4k0fR:call FindAndReplaceInputWordInNext3Lines()<cr>ka |