I would like to assign operation to a command key in Vim.
Aren’t any methods?
I would like to assign operation to a command key in Vim. Aren’t any
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Supposing you are on a Mac, you can’t map the command key in vim when it runs in a terminal emulator, only in the MacVim GUI.
If you are using the MacVim GUI, your mappings should use
<D-…>as innnoremap <D-l> <C-w>l. But it’s not a very good idea for many reasons among them those listed in this other answer of mine.Use
<leader>, as innnoremap <leader>l <C-w>l, instead.See
:help leaderand:help key-notation.