0

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.

  • Hint: use marks. Feel free to answer your own question. – D. Ben Knoble Jul 21 '18 at 12:53
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.