From 57a0df540c1b90d163b39c88207384461fd9599f Mon Sep 17 00:00:00 2001 From: Nick Jensen Date: Mon, 17 Oct 2022 10:15:56 +1300 Subject: [PATCH] Fix bad README autocmd suggestion This suggestion causes errors to occur as soon as the quickfix or location list windows are opened. Fixes #1271, #1275 --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 27aa3148..2f97d073 100644 --- a/README.markdown +++ b/README.markdown @@ -178,7 +178,7 @@ autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_ ```vim " Open the existing NERDTree on each new tab. -autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif +autocmd BufWinEnter * if &buftype != 'quickfix' && getcmdwintype() == '' | silent NERDTreeMirror | endif ``` or change your NERDTree-launching shortcut key like so: ```vim