I broke up with neovim....vim is my best friend now
This commit is contained in:
34
dot_vim/plugged/vimtex/test/test-toc-speed/test.vim
Normal file
34
dot_vim/plugged/vimtex/test/test-toc-speed/test.vim
Normal file
@@ -0,0 +1,34 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
let g:vimtex_cache_persistent = 0
|
||||
|
||||
let g:vimtex_toc_custom_matchers = [
|
||||
\ { 'title' : 'My Custom Environment',
|
||||
\ 're' : '\v^\s*\\begin\{quote\}' }
|
||||
\]
|
||||
|
||||
silent edit main.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
" profile start prof.log
|
||||
" profile func *
|
||||
|
||||
let s:time = vimtex#profile#time()
|
||||
let s:toc = vimtex#toc#get_entries()
|
||||
let s:time = vimtex#profile#time(s:time, 'Time elapsed (1st run)')
|
||||
|
||||
" profile pause
|
||||
" quit!
|
||||
|
||||
let s:toc = vimtex#toc#get_entries()
|
||||
let s:time = vimtex#profile#time(s:time, 'Time elapsed (2nd run)')
|
||||
|
||||
let s:toc = vimtex#toc#get_entries()
|
||||
let s:time = vimtex#profile#time(s:time, 'Time elapsed (3rd run)')
|
||||
|
||||
quit!
|
||||
Reference in New Issue
Block a user