Search code examples
windowsvimvim-quickfix

How do I reload the quickfix window from a running Gvim?


Say I've got a file called warnings.txt that holds a list of doxygen warnings I want to inspect. In order to do this, I start Gvim (Win32 if that matters) from a command line using

gvim -q warnings.txt

Then, Gvim starts and I can start to process the warnings in the file. After processing some of them, I want to re-create warnings.txt. I run doxygen again, the warnings.txt file gets refreshed.

Now, I want to read the refreshed warnings.txt and refresh the quickfix list.

How do I achieve this? How do I feed the quickfix window from a running Gvim?


Solution

  • Use :cfile to reload the error file:

    :cfile warnings.txt