aboutsummaryrefslogtreecommitdiff
path: root/after/ftplugin/qf.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-08-09 23:04:27 +0800
committerjdhao <jdhao@hotmail.com>2021-08-09 23:04:27 +0800
commit0aa6117ffc38581006a8a41e0e6fc2259a07ea74 (patch)
treee89ba68702b413006657e92489f98249bf82d756 /after/ftplugin/qf.vim
parent69c22793e1c37c35724204c3b26c5ea0488591f0 (diff)
Move ftplugin to after/ftplugin
Make my own settings have the final say on how a filetype should behave, instead of some 3rd party plugins.
Diffstat (limited to 'after/ftplugin/qf.vim')
-rw-r--r--after/ftplugin/qf.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/after/ftplugin/qf.vim b/after/ftplugin/qf.vim
new file mode 100644
index 0000000..89b4c1f
--- /dev/null
+++ b/after/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)