I use a plugin for todo.txt file (https://gitlab.com/dbeniamine/todo.txt-vim).
Because I mapped some d[other_letters] in my .vimrc and there's a \d mapped in the plugin, to avoid delays when I type \d I want to unmap my mapping only in the "todo" files.
The filetype assignement have complex rules, then I don't want to do autocommand on filename or extension, but I want to trigger it on filetype.
Then I wrote on my .vimrc:
augroup enter_todo au! autocmd FileType todo unmap <leader>db autocmd FileType todo unmap <leader>dp autocmd FileType todo unmap <leader>dc ... augroup END The problem:
when I open a "todo" file everything is fine but if I open another todo file, or even if I open the plugin help (the name match the todo filetype assignement rules, nevertheless it is recognized as help file, I can see that in the status line) an error happens (see the picture below).

Why?
How could I fix this behaviour?
P.S.: don't helps...