I'm editing my vimrc
and I want to map some keys to <F-1..12>
.
However I found some commands, like noremap
and nnoremap
. And they can work so good.
But I don't know what is the difference between the noremap
and nnoremap
.
I found this quesion, but I still don't understand the difference.
nnoremap and noremap are both "no re(cursive) map", the difference is one with n
the other not. that is n nore map
and nore map
, in another word, you are asking the difference between nmap
and map
The nnoremap/nmap will work only in Normal mode, but the noremap/map will work in Normal, Visual, Select and Operator-pending modes.
For more information, please read the help doc: :h map-modes
There are two tables, which give nice overview of the relation between map commands and modes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With