ctrl Verified current stable Not installed? Programming

Ctrl / Move Cursor Left Right Window Vimdiff

Move Cursor Left Right Window Vimdiff

Command to navigate between windows in vimdiff using Ctrl+w for horizontal movement.

$
Terminal
<Ctrl w><<h>|<l>>

When To Use

When needing to assess differences between multiple files side-by-side at granular detail.

Pro Tip

Use `Ctrl+w, Ctrl+w` to cycle through windows without releasing Ctrl.

Anatomy of Output

Understanding the result

#1 File One | Status: Modified File Info

Indicates the first file in vimdiff.

#2 File Two | Status: Unchanged File Info

Indicates the comparison file status.

Troubleshooting

Common pitfalls

E494: Not in diff mode

Solution: :diffthis

E859: Window not available

Solution: Use Ctrl+w to navigate to an available split.

E823: Unmatched bracket

Solution: Check your key sequence for errors.

Command Breakdown

What each part is doing

<Ctrl
Base Command
The executable that performs this operation. Here it runs Ctrl before the shell applies any redirect operators.
<<h>|<l>>
<h>|<l>
The value supplied for <h>|<l>.

Alternative Approaches

Comparable commands in other tools

Alternative programming tools for the same job.