File: run-scroll-on-docs.vim

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (32 lines) | stat: -rw-r--r-- 586 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set nocompatible
set runtimepath^=../..
set runtimepath+=../../after
filetype plugin indent on
syntax enable

set nolazyredraw
set columns=130

function! Scroll()
  let l:steps = range(2*line('$')/winheight(0))
  for l:_ in l:steps
    execute "normal! \<c-d>"
    redraw!
  endfor
  for l:_ in l:steps
    execute "normal! \<c-u>"
    redraw!
  endfor
endfunction

let g:vimtex_syntax_match_unicode = 0
let g:vimtex_syntax_conceal_disable = 1
"let g:vimtex_syntax_conceal_disable = 0
"set conceallevel=2
silent edit doc1.tex
call Scroll()

silent edit doc2.tex
call Scroll()

quitall!