In general, I want to make specific keymaps for application, that working only in it and doesn't affect other apps.
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.