TransWikia.com

Unable to map ctrl-l

Vi and Vim Asked on December 2, 2021

My _vimrc contains the following lines:

set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin


nmap <c-l> :w<CR>

nmap <c-m> :w<CR>

I try to map control+l to :w, and control+m is the control group.

I open a new file, press ctrl-m, the file saves. I press ctrl-l, the command line shows :update. I press ctrl-shift-l, the file saves.

enter image description here
The figure shows the UI after I press ctrl-l. The cursor was on the previous line.

enter image description here
I run :map , <C-L> is registered, but I can only trigger it with ctrl-shift-l.

Why does the mapping of ctrl-l fail?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP