I currently have my capslock key bound to [compose] using xmodmap. Compose is good when typing scientific stuff, as I can quickly write things like 275°K.
But it's not useful when programming. When I use vim, I'd like to have the [esc] mapped to capslock, while maintaining the [compose] functionality elsewhere. In other words, I don't want to use xmodmap to do the mapping, I want to do it in vim itself.