5

How can I go from a formation like this

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

to one like this

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

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".

| improve this answer | |
2

You can use ^w H, ^w J, ^w K, and ^w L to move the split windows. (Note the capital letters. If you were to do without holding shift, it would just change which window was focused).

So with your example, you could just move to window 3 and press ^W K.

| improve this answer | |
  • These are definitely not native Vim commands. See my answer. – Heptite Apr 30 '11 at 23:56
  • Shoot, forgot that they were ^W (letter) and not just ^(letter). – Wuffers Apr 30 '11 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.