diff options
author | Teddy Wing | 2020-09-10 20:47:47 +0200 |
---|---|---|
committer | Teddy Wing | 2020-09-13 14:01:17 +0200 |
commit | 901092349a84abfa2b862fd60fa4a51c91a2b3ea (patch) | |
tree | e2ff07069127285682cd71cd553dc5eefaa4565d | |
parent | 80b4f765a6101abaa779e4c50482cfecaea7b013 (diff) | |
download | dotvim-901092349a84abfa2b862fd60fa4a51c91a2b3ea.tar.bz2 |
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.
-rw-r--r-- | vimrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |