O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Refactoring Code with Regex and Macros

This chapter will focus on features provided by Vim to support refactoring operations.

We will cover the following topics:

  • Using search or replace functionality with :substitute
  • Using regular expressions to make searches and substitutions smarter
  • Using arglist to perform operations on multiple files
  • Examples of refactoring operations, such as renaming methods and reordering arguments
  • Macros, which let you record and replay keystrokes

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required