1

In general I can programmatically detect the active mode on a vim instance using

$ vim --remote-expr 'mode(1)'

but when vim is in debugger mode (i.e., it has hit a breakpoint placed via :breakadd), it seems to just return c (Command-line mode) instead of identifying the mode as a debug prompt. Is there some other way I can detect debug prompt?

Context: For software that instruments vim like https://github.com/google/vroom, it would be useful to be able to handle debug mode specially instead of assuming vim is "stuck".

Your Answer

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

Browse other questions tagged or ask your own question.