|This is still an ongoing post, so some things may be incomplete.|
Using Vim buffers
Unload buffer [N] (default: current buffer) and delete it from the buffer list. If the buffer was changed, this fails, unless when [!] is specified, in which case changes are lost. The file remains unaffected.
Like |:bdelete|, but really delete the buffer.
NOTE: a word of caution:
By default, Vim opens a new empty buffers when using the commands below, however, if specifying
filename is the name of the file, it opens a new buffer with the existing file. It
<filename> does not exist, it creates an empty file.
Vim allows you to split buffers so you can easily work looking at multiple files. Vim allows the user to split the file vertically or horizontally. By default, Vim duplicates the current buffer if no filename or buffer is specified.
:vs <filename> :vertical <filename> :vsp <filename>
:sp <filename> :split <filename>
Vim split height and resize ^^^^^^
Vim also allows you to specify a custom height for your buffer.
:10sp <filename> :10vsp <filename>
To resize a current split, swap position, and move them to a tabview [[Vim tabs]], vim has a few key bindings to help out.
Max out the height of the currents split
Max out the width of the current split
Normalize all split sizes (handy when resizing the terminal)
Swap top/bottom or left/right split
Break out current window into a new tabview
Close every window in the current tabview but the current one