I added some lines in insert mode and now I would like to run some command only on these edit. How to perform it?
Share
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.
Marks
'[and']locate the start and end lines of newest inserted or changed text. From this, you can simply runto indent those lines once. See
:help '[for more examples. And for instance, formatting the code will happen withand formating a chunk of text with