TIL: #Vim can do

:w >> filename

to _append_ to a file.

(You can omit "filename" to append to the current file.)

Also, :w accepts a range, so if you want to append only a few lines from the current buffer (e.g. by selecting them in visual mode), you can do that.

And :w also accepts a range when _not_ appending, allowing you to save only a selection of lines in the current buffer to the current file. (You might need to use :w! if it's an existing file, to protect you from fuckups.)

But what I originally went into the manual for:

You might know that you can open multiple files in split windows, using something like

vim -o file1 file2 file3

But if you forgot the -o and would like to do it after #Vim is already open, the :all command is what you're looking for.

(There's also -O for vertical splits, equivalent to :vert all, and -p, equivalent to :tab all.)

@scy You can also split your window ("CTRL+w v" or "CTRL+w s") and then use

:b <tab><tab><...>

to tab through the files you specified on the command line to selectively put files into the split window. Handy for editing many files and keeping a list of files to tab into ready.

@thilo @scy still missing the combo to immediately split a buffer into a new window, that'd save me so much time... Although it wouldn't surprise me if there's actually a command for that, let me dig into the docs...
@thilo @scy I mean, there's :SB and friends, but those require you to know the buffer numbers, I'm not sure if that's much faster than :vsp followed by leader b to bring up my buffer selector...
Vim documentation: windows

@scy as someone that is just getting back into vim for a few months now I’m glad to see that “opening the manual for learning new stuff” remains a thing!
@gedankenstuecke There are _so_ many interesting things to be found in the manual. Reading it is never a bad use of your time.
@scy yeah, I found it to be by far the best tutorial to get back onto the vim train after years of Atom/VScode.