Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question