You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use set history=20 (or any other numbers) in my init.vim file, the cursor moves very slow (with h and l) in .tex file if the current line is very long.
But if I comment out set history=20, the speed is very fast.
If I comment out the vimtex plugin and keep set history = 20, the speed is also fast.
Do you know why it happens?
minimal.vim
set history=20
call plug#begin('~/.vim/plugged')
Plug 'lervag/vimtex'
call plug#end()
For me, the delay is not related to the history option - it would be a really strange thing if it was! But delay on long lines are instead caused by the feature for matching highlighted delimiters. You can disable it with let g:vimtex_matchparen_enabled = 0. Or, perhaps better: install vim-matchup as a much better provider of this feature (https://github.com/andymass/vim-matchup).
Description
If I use
set history=20
(or any other numbers) in my init.vim file, the cursor moves very slow (withh
andl
) in .tex file if the current line is very long.But if I comment out
set history=20
, the speed is very fast.If I comment out the vimtex plugin and keep
set history = 20
, the speed is also fast.Do you know why it happens?
minimal.vim
minimal.tex
Steps to reproduce
nvim -u minimal.vim minimal.tex
h
andl
on the long line in normal mode.Expected behavior
Fast moving speed.
Actual behavior
Slow Moving speed.
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: