How to map meta key for key management in vim?

How do I map my Windows key (which is defined as the Meta_L key in Ubuntu) so that it also works as the Ctrl+ key Lin Vim? This is a more convenient display for me in some cases.

+5
source share
4 answers

It looks like Ctrl, and Althard-coded into the source Vim. You can map your Windows key Ctrlglobally if you don't mind all other programs. Some window managers will support this, otherwise you can use xmodmap . The vim wiki contains some information about mapping a Windows key to another Esc, which is similar.

+1
source

You must reassign all the sequences that you use <C->to use <M->and put them in a separate .vimrc.

For a complete list of current mappings, use

:redir > ~/mappings | map | redir END 
:e ~/mappings
:g!/<C-/d

, . .vimrc

:help map

, .

+3

> a > Alt/Win > Alt, Alt Win. .

+1

xmodmap, GNOME, → → → Alt/Win → Control Win Key. (, gnome-keyboard-properties)

, , vim.

0

All Articles