From e7e5853ce371c059f394dd75e4bdef29a1295f7d Mon Sep 17 00:00:00 2001 From: Satoru Kitaguchi Date: Sat, 13 Apr 2024 05:29:09 +0900 Subject: [PATCH] add switchbuf setting mainly for quickfix commands --- .vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 957916f..564c459 100644 --- a/.vimrc +++ b/.vimrc @@ -293,7 +293,11 @@ command! UseGitGrepNoIndex setlocal grepprg=git\ grep\ --no-color\ -n\ --column\ command! UseDefaultGitGrep set grepprg=git\ grep\ --no-color\ -n\ --column\ --untracked #}}} -# Open quickfix window automatically. #{{{ +# Quickfix: #{{{ +# Open a new tab when jumping to a quickfix item, splitting buffers, using stag, +# CTRL-W_f or CTRL-W_F. +set switchbuf=newtab +# Open quickfix window automatically. autocmd MyVimrcCmd QuickfixCmdPre make,grep,grepadd,vimgrep,vimgrepadd,helpgrep copen #}}}