I often find myself switching from a horizontal view of two windows in emacs to a vertical view. This requires me to first do C-x 1 and then C-x 3 and then C-x o followed by C-x b <RET> to switch to the other buffer or something like that. I would like to only have to type C-x | (analogous to how, in Ediff, you hit | to toggle the split view).
I found this in the emacs wiki site: http://www.emacswiki.org/emacs/ToggleWindowSplit
But how do I map that to the key combo I want? Or whether there is a simpler way to do it (taking less .emacs space).