aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2020-09-10 20:47:47 +0200
committerTeddy Wing2020-09-13 14:01:17 +0200
commit901092349a84abfa2b862fd60fa4a51c91a2b3ea (patch)
treee2ff07069127285682cd71cd553dc5eefaa4565d /vimrc
parent80b4f765a6101abaa779e4c50482cfecaea7b013 (diff)
downloaddotvim-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.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
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