aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftplugin/qf.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/qf.vim b/ftplugin/qf.vim
new file mode 100644
index 0000000..89b4c1f
--- /dev/null
+++ b/ftplugin/qf.vim
@@ -0,0 +1,6 @@
+" Set quickfix window height, see also https://github.com/lervag/vimtex/issues/1127
+function! AdjustWindowHeight(minheight, maxheight)
+ execute max([a:minheight, min([line('$'), a:maxheight])]) . 'wincmd _'
+endfunction
+
+call AdjustWindowHeight(5, 15)