Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim mapping ctrl-` or <c-`> to <c-w>w

I tried

inoremap <c-`> <c-w>w 

and various combination, but nothing seems to work. Is cntrl-` already mapped?

Using Lubuntu 64 bit 16.04 : lxterminal Attempted cntrl-v cntrl-` to find the character but nothing shows up.

FYI: I am attempting to make sure I can do same thing with my VSCode editor.

like image 579
user6273920 Avatar asked Feb 27 '26 00:02

user6273920


1 Answers

In a typical terminal, control` is an ASCII NUL (zero), which vim will not map. Using cat -v to make the result visible, you'd likely see

^@

which is a single character...

You'd have the same behavior for a few other keys which typically produce a NUL, e.g., controlspace, or control@ (really!)

like image 136
Thomas Dickey Avatar answered Mar 01 '26 08:03

Thomas Dickey