L
L
lemonable2021-01-01 22:02:56
vim
lemonable, 2021-01-01 22:02:56

How to bind (nnoremap) the "Command ⌘" button on MacOS to text. NeoVim/Vim editor?

There is an example config to bind a command in neoVim, ctrl-E is executed in it - the command is executed, ctrl-R - the reverse is executed.

nnoremap <C-e> :NERDTree<CR>
nnoremap <C-w> :NERDTreeToggle<CR>

The question is how to put the button "Command ⌘" instead of ctrl ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Demin, 2021-01-02
@includedlibrary

Try replacing C with D

nnoremap <D-e> :NERDTree<CR>
nnoremap <D-w> :NERDTreeToggle<CR>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question