I see <cr>
s a lot in vim mappings, but what does it do?
The CR command collects failure information and either displays it on the console or dumps the information to a floppy disk.
Short for carriage return, CR is often used to represent a carriage return done by pressing the Enter and Return key.
In Vim (and Emacs) documentation, C- and M- stand for Ctrl and Meta (i.e. Alt ) respectively.
:help key-notation
says:
notation meaning equivalent decimal value(s) ----------------------------------------------------------------------- <CR> carriage return CTRL-M 13 *carriage-return* <Return> same as <CR> *<Return>* <Enter> same as <CR> *<Enter>*
Mappings often involve Ex commands and you must press <CR>
to execute them so it's included in the mapping.
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