Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • you have your answers below, if it is something more complex than what you have shown then you should have a look at macros vim.wikia.com/wiki/Macros Commented Nov 27, 2013 at 16:23
  • I was hoping that there was some way to do it using visual mode but I guess not. Thanks for the help everyone! Commented Nov 27, 2013 at 16:33
  • If you do want to use visual mode for this, something here might help: vim.wikia.com/wiki/Repeat_command_on_each_line_in_visual_block Commented Nov 27, 2013 at 16:38