Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Is it possible to automatically return to where the cursor was before running :cdo command?
Currently, the cursor ends in the last file in the quickfix, then I have to navigate back to where I was before running the command.
It turned out that pressing C-o after the :cdo command ends, returns the cursor to its position before running the command. I can now add this C-o to the :cdo command keybinding.
Required, but never shown