Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I convert horizontal split to vertical split and vice-versa in Emacs?

Tags:

emacs

How do I convert horizontal split to vertical split and vice-versa in Emacs? Is there a command/recipe for this?

like image 504
Rohan Monga Avatar asked Sep 20 '10 07:09

Rohan Monga


People also ask

How do I split the screen in Emacs?

First split one of the windows in two Ctrl + X 3, then switch one of the two horizontal windows to the previous one (i.e. the other horizontal split): Ctrl + X b Enter. Not the answer you're looking for? Browse other questions tagged emacs or ask your own question.

How do I split a window vertically and horizontally in Vim?

As an alternative way to create a vertical split, you can press the Ctrl + w key combination, and lastly, press the letter " v " (v for vertical split). Vim allows you to split the window horizontally as well. To make a horizontal split, enter Normal mode, and run the following command:

How to split a window in AutoCAD?

In the mode line of a window, split that window. C-x 2 ( split-window-below) splits the selected window into two windows, one above the other. After splitting, the selected window is the upper one, and the newly split-off window is below.

How does line truncation work in Emacs?

When you split a window with C-x 3, each resulting window occupies less than the full width of the frame. If it becomes too narrow, the buffer may be difficult to read if continuation lines are in use (see Continuation Lines). Therefore, Emacs automatically switches to line truncation if the window width becomes narrower than 50 columns.


2 Answers

http://www.emacswiki.org/emacs/ToggleWindowSplit

like image 116
Anycorn Avatar answered Sep 30 '22 03:09

Anycorn


a version that works for an arbitrary number of open windows

http://www.emacswiki.org/emacs/TransposeFrame

https://stackoverflow.com/a/8650787/324105

like image 32
phils Avatar answered Sep 30 '22 03:09

phils