Read more

Vim: Simple way to edit several lines at once at the same cursor position

Felix Eschey
July 20, 2023Software engineer at makandra GmbH

Within Vim do the following:

  • Move cursor to the first starting line where you want to start editing
  • ctrl + v to enter select mode to select all characters in one column
  • Move the cursor vertically down until you selected the last line
  • shift + i to got into "multiple" insert mode
  • Do all the required editings
  • Use the ESC-character exit insert mode
  • Press ESC-character to apply all changes

Hint

This does not work with deleting and editing at once

  • If you first want to delete the content, can also use the select mode of ctrl + v to select the content to delete
  • Delete the selected box by pressing d
Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot
Posted by Felix Eschey to makandra dev (2023-07-20 17:02)