From 890464b8dd0b012d396e9f61e9a37710b45ea9ea Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sun, 8 Jan 2023 16:52:19 +0100 Subject: [PATCH] vim:ftplug:tex: Close quickfix window on movement When continuous compiling on write, the quickfix window can be tedious when it pops up every time containing errors that will be resolved in the future or ignored. Fix this by closing it as soon as the cursor is moved. --- .config/vim/ftplugin/tex.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/vim/ftplugin/tex.vim b/.config/vim/ftplugin/tex.vim index 3283a21..51ea0a8 100644 --- a/.config/vim/ftplugin/tex.vim +++ b/.config/vim/ftplugin/tex.vim @@ -4,6 +4,9 @@ set wrap let g:tex_flavor = "latex" let g:vimtex_compiler_progname = 'nvr' +" Close the quickfix window after a cursor movement +let g:vimtex_quickfix_autoclose_after_keystrokes = 1 + " Setup latexmk and make callback possible with synctex " (Click into PDF to land in code) let g:vimtex_compiler_latexmk = {