Ask Your Question
1

What is the method for performing the same action multiple times in Vim?

asked 2022-06-27 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-12-11 16:00:00 +0000

woof gravatar image

The method for performing the same action multiple times in Vim is by using the repetition command. To repeat a command, use the "." (dot) command. This will repeat the last command. For example, if you want to delete the next 3 lines of text, you can use the command "3dd". This will delete the next 3 lines of text. To repeat this command, simply press the "." (dot) command. This will delete the next 3 lines of text again.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-06-27 11:00:00 +0000

Seen: 11 times

Last updated: Dec 11 '21