The command :terminal will start a new command. For example:
:term rails c
would start rails c in a new buffer. To get out of terminal mode, and be able to switch through splits, use the following combination: ctrl-\ ctrl-n. That is ctrl-backspace, followed by a ctrl-n.