Posted in Uncategorized

vi: Keyboard Macros

While editing a file I have often the problem to do the same tasks repeatedly on many (or even all) lines, e.g.:

  • appending a semicolon to the end of every line,
  • commenting some lines in a shell script,
  • creating SQL statements from a list of tables,

This can be done with keyboard macros.
Continue reading “vi: Keyboard Macros”