I have run into a Vim key binding issue at the office recently. On the Linux system where I do my development work, while running Vim the CTRL-L key no longer redraws the screen. The .exrc file in my home directory does not map the CTRL-L key. The CTRL-L key seems to be mapped to the string "clear".

The value of the TERM environment variable is xterm-256color, which is what it always has been.

What could cause this issue with the CTRL-L key? I know I can use the :redraw! command to refresh the screen, but I would like to use CTRL-L as I have been doing for years.

I ran vim --version and received the following

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 30 2020 08:08:00)

I should also add that even when I add a mapping for Ctrl-L to my .exrc file that does not resolve this issue.

  • 3
    You can show all mapping with the :map command. What does :map <C-L> return?
    – Friedrich
    Nov 15, 2023 at 14:40
  • 1
    BTW, you should probably take this as an opportunity to rename .exrc to .vimrc.
    – romainl
    Nov 15, 2023 at 17:41
  • CTRL-L is not mapped to anything Nov 16, 2023 at 23:00
  • Then consider the possibility that the problem has its cause elsewhere. In your terminal emulator, maybe?
    – romainl
    Nov 17, 2023 at 8:24


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.