I'd like to map q
to :cclose
in the quickfix window, but I wonder if I'd be locking myself out of a world of wonderful macros by doing so.
Are there realistic scenarios where you'd want to be able to start recording a macro from the quickfix window? The only one I can think of is:
- open the current error
- do something
- return to the quickfix window
- move down to the next error
But I think it would be more convenient to open the current error, start the macro from that buffer, do something, and use :cnext
to move to the next error. That way you don't have to jump back and forth between windows.
Is there a more compelling use-case for preserving the default q
keybinding in the quickfix window?
:cnext
in your macro (which seems more efficient than going back to the quickfix window, change line and go to the next error). So you should remapq
in the quickfix window, test this config for awhile and change it if you realize that it doesn't actually fit your needs.