From 901092349a84abfa2b862fd60fa4a51c91a2b3ea Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 10 Sep 2020 20:47:47 +0200 Subject: vimrc: Set a fixed tall quickfix window height for vim-go By default, vim-go sets the quickfix window's height to be the number of quickfix items. This is problematic when, for example, there's a single error item, and the quickfix window opens below a narrow window (for example, in one of three vertical splits). In that case, the error gets line wrapped, and quickfix window is only one line tall, meaning I can't read the full error. Set the window height to Vim's default of 10 lines. Vim-go will collapse the height to 10 lines if the variable is set to a number greater than 10, and 5 lines was too short in practise. --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 4f1b355..3c06d26 100644 --- a/vimrc +++ b/vimrc @@ -461,6 +461,9 @@ " 2020.06.17: " * Add count support to `[q`, `]q`, `[w`, `]w`. " +" 2020.09.10: +" * Make the quickfix window 10 lines tall in vim-go. +" " Pathogen @@ -693,6 +696,7 @@ let g:go_fmt_command = 'goimports' let g:go_fmt_autosave = 0 let g:go_gopls_enabled = 0 let g:go_def_mapping_enabled = 0 +let g:go_list_height = 10 " Whitespace method chain -- cgit v1.2.3