Skip to content

Commit

Permalink
add switchbuf setting mainly for quickfix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
satorunooshie committed Apr 12, 2024
1 parent 5f810fe commit e7e5853
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
#}}}

Expand Down

0 comments on commit e7e5853

Please sign in to comment.