Last active
July 18, 2018 23:20
-
-
Save andymass/8c9d570bb4445208302a317cfd421131 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible noswapfile viminfo= | |
let g:re = '\m\C\%(\\right\>\%(\\\w\+\>\|\\[|{}]\|.\)\|\\middle\>\%(\\\w\+\>\|\\[|{}]\|.\)\|\\left\>\%(\\\w\+\>\|\\[|{}]\|.\)\|\%(\\[bB]igg\?\)r\>\%(\\\w\+\>\|\\[|{}]\|.\)\|\%(\\[bB]igg\?\)m\>\%(\\\w\+\>\|\\[|{}]\|.\)\|\%(\\[bB]igg\?\)l\>\%(\\\w\+\>\|\\[|{}]\|.\)\|\%(\%(\w\[\)\@2<!\|\%(\\[bB]igg\?\[\)\@6<=\)\%(\\[bB]igg\?\)\%(\\r\%(angle\|floor\|ceil\|[vV]ert\)\>\|\\urcorner\>\|)\|]\|\\}\)\|\%(\\[bB]igg\?\)\%(\\vert\>\||\|\\|\)\|\%(\\[bB]igg\?\)\%(\\l\%(angle\|floor\|ceil\|[vV]ert\)\>\|\\ulcorner\>\|(\|\[\|\\{\)\|\%(\\left\|\\right\|\[\@1<!\\[bB]igg\?[lr]\?\)\@6<!\v%(\\@<!%(\\\\)*)@4<=\m\\}\|\%(\\left\|\\right\|\[\@1<!\\[bB]igg\?[lr]\?\)\@6<!\v%(\\@<!%(\\\\)*)@4<=\m\\{\|\%(\\left\|\\right\|\[\@1<!\\[bB]igg\?[lr]\?\)\@6<!\v%(\\@<!%(\\\\)*)@4<=\m]\|\%(\\left\|\\right\|\[\@1<!\\[bB]igg\?[lr]\?\)\@6<!\v%(\\@<!%(\\\\)*)@4<=\m\[\|\%(\\left\|\\right\|\[\@1<!\\[bB]igg\?[lr]\?\)\@6<!\v%(\\@<!%(\\\\)*)@4<=\m)\|\%(\\left\|\\right\|\[\@1<!\\[bB]igg\?[lr]\?\)\@6<!\v%(\\@<!%(\\\\)*)@4<=\m(\|}\|{\|\\)\|\\(\|\\]\|\\\[\|\\fi\>\|\\else\>\|\\if\w*\>\|\\makeatother\|\\makeatletter\|\\endgroup\|\\begingroup\|\\egroup\|\\bgroup\|\\end{tabular}\|\\toprule\>\|\\midrule\>\|\\bottomrule\>\|\\begin{tabular}\|\\end\s*{\%(enumerate\*\=\|itemize\*\=\)}\|\\item\>\|\\begin\s*{\%(enumerate\*\=\|itemize\*\=\)}\|\\end\s*{\%([^}]*\)}\|\\begin\s*{\%([^}]*\)}\)\%>1c\&' | |
let g:timer = timer_start(200, 'Callback', {'repeat': -1}) | |
function! Callback(tid) | |
call searchpos(g:re, 'bnW') | |
endfunction | |
function! TYP() | |
endfunction | |
autocmd TextYankPost * call TYP() | |
function! DoCrash(tid) | |
call feedkeys(line('.') == line('$') ? 'k' : 'j', 'tm') | |
endfunction | |
let g:content = "\\subsection{callitype pouty}\n" | |
\ . "Glans $\\endocoele$ neomycins anatifer coloring msent $\\multo$ athabasca carnied spreng piotty $\\rogerson$.\n" | |
\ . "connell shawnees frugivora $\\glans$ endocoele neomycins anatifer coloring msent multo $\\athabasca$ carnied\n" | |
\ . "spreng piotty rogerson connell shawnees frugivora." | |
noswapfile sil vspl ex.tex | |
sil put!=g:content | |
normal! gg0 | |
call feedkeys('v', 'tm') | |
call timer_start(100, 'DoCrash', {'repeat': 40}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment