Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reopen a file closed by vim quickfix

Tags:

vim

When I use vim's quickfix to jump to errors in my build, if the file containing an error isn't already open it opens it in one of my splits, replacing the file I had open.

Is there a way to either reopen last closed file in a split or get quickfix to open files in a new split?

like image 205
m0tive Avatar asked Dec 16 '22 23:12

m0tive


1 Answers

Try using <C-o> in normal mode. It takes you to the previous position, even if previous position was in other file.

like image 197
ZyX Avatar answered Jan 12 '23 01:01

ZyX