Skip to main content

vi/vim, how can I write out a number of lines to a new file

While in an active Vim buffer, how can I write out a specific range of lines to a new file without closing the current buffer first?

Michael Durrant
  • 43.7k
  • 72
  • 176
  • 237