In general, I want to make specific keymaps for application, that working only in it and doesn't affect any other app.
For example, I already use my Caps key to toggle input language (via xorg.conf), but I want Capslock to behave like Esc in vim. Looks like xmodmap doesn't have any options related to that.
I use Gnome and would also appreciate any third-party applications.