[vim] Expose context (or mode) to the Vim API and add :nmap + :vmap.

Also fixed a bug in context matching.