Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • I don't like this way because if I need to add other filetype or condition I need to mess with the original mapping. No way to unmap "per buffer"? Something like autocmd FileType todo unmap <buffer><leader>db? I tried that but it doesn't works. Commented Nov 28, 2023 at 14:21
  • I have proposed another version based on unmap (and <buffer> mapping). Commented Nov 28, 2023 at 18:03
  • 1
    Vivian, with this solution I got rid of all the errors if I open the faile and then try to reload (:e), but the lag after the typing of \d is still here. I can't understand why. Commented Dec 4, 2023 at 8:35
  • 1
    What is the result of the :verbose nmap \d command after you have reloaded your todo file? Commented Dec 4, 2023 at 11:15
  • 1
    GREAT! Thanks to your "kind of magic" I discovered that in the mists of time I mapped another \d (\data), and that wasn't unmapped. SOLVED! Commented Dec 5, 2023 at 15:36