That is the job of an editor.
Use either Vim, or, to ensure this isn't an editor war, Emacs.
In reply to Re: Horizontal Split by stevieb in thread Horizontal Split by Sikula