I'm learning key mappings, I know that:
:imap <c-d> <esc>ddi
means "If you are in 'insert' mode and press ctrl+d
, it performs first <esc>
like you have been pressed the esc key and then press d
, d
and i
". So you escape from insert mode, delete a line and enter insert mode again.
Ok, but I find this:
:map <F2> a<C-R>=strftime("%c")<CR><Esc>
And I don't understand, if I read it like the fisrt command I get "If I press F2
it's like press the key a
with ctrl+shift+r
(uppercase R)? and then it prints the strftime
and <CR>
?