There is a line below in vimrc example file
inoremap Ctrl-u Ctrl-G u Ctrl-u
What’s the meaning of inoremap and what’s the function of this line?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
vim:help inoremapis very poetic about this:Thus it makes some insert-mode mappings for ^U that show the filename (
^G, undo the most recent change (u), and scrolls the buffer upwards by half a screen (^U).I have no idea why someone would want this specific sequence of commands, except to demonstrate the
inoremapfeature — the^Uat the refers to the meaning the command had when the definition was created, rather than calling back into the redefined^Umapping.