0

Is it possible to do something like the following in vim?

:1,3|7,9 s/import/new

What I'm trying to do is:

  • Replace the word 'import' with 'new' on lines 1-3
  • Do the same on lines 7-9
David542
  • 104,438
  • 178
  • 489
  • 842

0 Answers0