Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

I remapped da to dA in order to be able to later create mapping for daf and dad to delete all files and directories.

nnoremap dA da<cr>

I just tried dA and selected n in the delete confirmation dialog and vifm crashed:

ifm: event_loop.c:248: event_loop: Assertion `counter <= input_buf_pos' failed.
Aborted (core dumped)

Am I doing it wrong?

Thank you

1 Answer

+1 vote
by
selected by
 
Best answer

You don't need <cr> in normal mode. Thanks for finding a bug.

by

It does not crash without <cr>. Thank you.
But, is this the right way of doing it? Or I have to first disable the builtin da and then remap it?

by

Yes, that's how you do it. Builtin keys can't be disabled.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...