Is it possible to combine registers in vim? For example, if I have registers “a, “b, “c, can I easily create register “d which is a concatenation of all three? That is, without pasting them all and then selecting the whole thing.
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.
With the command
:let @a = "something"you can assign to a register.With the command
:let @A = "another thing"or:let @a .= "another thing"you can append to a register.Lets say your registers are filled as follows (inspected using the reg command)
Then you can call
or
And your register d looks like