I added

au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
au VimLeave * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'

to my .vimrc to map Capslock to Escape. Since then, vim randomly shows the following statusline upon startup:


Not every time, but only sometimes. I couldn't find out, what triggers it.

Here is a screenshot:


  • That's hard: the escapes shown are not related to the keyboard. If I encountered that in development, I'd build xterm with debug-traces and look for clues in the log. – Thomas Dickey Apr 6 at 12:32
  • Oh look! "powerline" again. – JdeBP Apr 6 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.