Some other programs have the concept of "key bindings" where there is a list of available internal commands, and then various keys are assigned to trigger these commands. Vim does not work that way. There is no spoon internal command triggered by CTRL-O
. What you can do is map ALT-o
to CTRL-O
.
I am not sure that <M-o>
works for ALT-o
on my system, but for the sake of discussion, let's assume that it does on yours. If you were to define
:nnoremap <C-o> :browse confirm e<CR>
:nmap <M-o> <C-O>
Then ALT-o
would have the same effect as :browse confirm e<CR>
. But you are already using the "nore" variant, so what you are more likely to do is
:nnoremap <C-o> :browse confirm e<CR>
:nnoremap <M-o> <C-O>
and this would make ALT-o
behave like an unmapped CTRL-O
.
Unless you have a :cmap
that affects browse confirm e<CR>
, or you are one of those people who remap :
, then it does not matter whether you use :nmap
or :nnoremap
in the first line above.
:help :noremap