I've written a vim script that inserts unicode mathematical notation into what I'm editing. It's basically a few hundred lines of code that look like
:map! \bbq ℚ.
Sometimes I want to enable all of these definitions together. And sometimes I want to switch them all back off again. Really I want some kind of mode where they are enabled. But I'd like to switch them on and off while editing other types of file, like C++ source or plain text. What's the best way to organise this? Do I need to write a few hundred
unmaps? Or is there some way of undoing a whole lot of mappings in bulk? Can I wrap this up in some kind of mode?