1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Go Back To The Previous Window as a vim til

This commit is contained in:
jbranchaud
2019-03-18 13:00:05 -05:00
parent 0ec59319ed
commit e0c786c045
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
# Go Back To The Previous Window
When working with multiple files, you may have one or more window splits
open. You may even be moving back and forth between two in particular --
perhaps if you are iterating on a test and its implementation. You can move
back to the previous window using `Ctrl-w Ctrl-w`. This is the same as
hitting `Ctrl-w w`.
Once you've moved back to the previous window, the window you were just in
is now the previous window. That means you can keep hitting `Ctrl-w Ctrl-w`
to toggle back and forth.
See `:h ctrl-w w` for the exact command and `:h ctrl-w` for more on window
commands.