Day 20: Rearranging Windows in Vim

Today was a really busy day for me outside of coding so I don’t have too much to share. I continued learning more about Vim Window and Tab controls.

TLDR;

Okay, so here are the highlights of what I did:

  • I learned how to rearrange windows in Vim. This in included rotations and re-splitting the screen to fit the windows in a different manner.
  • I read through some documentation for WordPress theme structures. I am hoping to finally revamp some of the theme for the blog this weekend.

Vim Progress

Here are my notes for rearranging windows in Vim. Hopefully it might help you out like it has helped me.

We can switch between our visible windows with a variety of commands. Here are some of the simplest options:

# Move to the next available window (top left -> bottom right and loop)
CTRL-w w

# Move to the window above
CTRL-w <Up>
CTRL-w k

# Move to the window below
CTRL-w <Down>
CTRL-w j

# Move to the window on the left
CTRL-w <Left>
CTRL-w h

# Move to the window on the right
CTRL-w <Right>
CTRL-w l

# Move to the top-left window
CTRL-w t

# Move to the bottom-right window
CTRL-w b

# Move to the previous window
CTRL-w p

# Execute these commands from the command line
:[count]winc[md] {arg}
EX: :winc w

Conclusion

That’s all for today. If you are interested in the MIT course you can check out the video lecture I’m currently going through. The lecture is helpful but isn’t sufficient by itself. Anyways, until next time PEACE!