0

I'm trying to edit all the files at once using vim buffers. Is it possible to delete 1st row of each file opened in buffers?

Avin
  • 86
  • 11

3 Answers3

3

Check out the :bufdo command

Specifically, what you want is :bufdo! 1d

2

you can do the task with :bufdo 1d | update

ernix
  • 3,442
  • 1
  • 17
  • 23
1

:tabdo 1d works for me in gVim, but that's across multiple tabs. I'm not sure how buffers differ—you might need to use :bufdo instead.

Check here for more info:

http://vim.wikia.com/wiki/Run_a_command_in_multiple_buffers

DaoWen
  • 32,589
  • 6
  • 74
  • 101