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 organize this? Do I need to write a few hundred unmap
s? Or is there some way of undoing a whole lot of mappings in bulk? Can I wrap this up in some kind of mode?