vimtricks.wiki Concise Vim tricks, one at a time.

How do I move the current window to the far left of the screen?

Answer

<C-w>H

Explanation

The <C-w>H command moves the current window to the far left, making it a full-height vertical split. It changes the window layout structure.

How it works

  • <C-w>H moves the window to the far left
  • <C-w>J moves it to the very bottom
  • <C-w>K moves it to the very top
  • <C-w>L moves it to the far right

Example

With a horizontal split (top/bottom), pressing <C-w>H in the bottom window converts it to a vertical split (left/right).

Tips

  • These uppercase commands change the layout structure
  • Lowercase <C-w>h/j/k/l just moves the cursor between windows
  • Useful for reorganizing your window layout
  • <C-w>r rotates windows within the current row/column
  • Works with any number of windows

Next

How do you yank a single word into a named register?