VIM Window panes changing orientation

vim

How can I go from a formation like this

..........................................................
.                            .                           .
.                            .                           .
.             3              .                           .
.                            .                           .
.                            .                           .
..............................              1            .
.                            .                           .
.                            .                           .
.             2              .                           .
.                            .                           .
.                            .                           .
.                            .                           .
..........................................................

to one like this

..........................................................
.                                                        .
.                                                        .
.                             3                          .
.                                                        .
.                                                        .
..........................................................
.                             .                          .
.                             .                          .
.                             .                          .
.            2                .             1            .
.                             .                          .
.                             .                          .
.                             .                          .
..........................................................

Best Answer

  • Control-W K (note that the "K" must be shift+k (uppercase k)) will move the window your cursor is in to the very top of the screen, making it full width.

    See ":help window-moving".

  • Related Question