Skip to main content

While in an active Vim buffer, how can I havewrite out a bunchspecific range of lines that I want to write out to a differentnew file.
How can I do that without closing the current buffer first?

I have a bunch of lines that I want to write out to a different file.
How can I do that?

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?

Tweeted twitter.com/#!/StackUnix/status/226263965498486786
Source Link
Michael Durrant
  • 43.7k
  • 72
  • 176
  • 237

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

I have a bunch of lines that I want to write out to a different file.
How can I do that?