As the vim wiki tells us, you cann't derectly map <ESC>, instead you should map <C-c> Official website screenshot: