Basic Movement

While in normal mode you have access to many powerful motions to help you navigate through code.

Let's start by learning the basics. Use the hjkl keys as indicated below to move one character in any direction.

h
jpointer
finger
kmiddle
finger
lring
finger
Example

 

Now it's your turn!

  1. Try moving your cursor to the green target:  
  2. Make sure that you are using the correct fingers! (see above diagram)
  3. See how fast you can complete 15 targets.










// Welcome to this interactive Vim Playground!
// Try moving your cursor to the green target
(function someDemo() {
const test = "Hello World!";
console.log(test);
})();
// test
return () => <App />;
 0/15  00:00

Why not use the arrow keys?

Vim is about efficiency, which means staying as close as possible to the home row keys.

The arrow keys are intuitive, but using them requires you to move your right hand completely away from the home row keys. This is inefficient.

Where should I rest my fingers?

You should rest with your fingers on the home row keys, even though this makes your right index finger responsible for hitting both h and j keys.

  • Your right hand fingers should rest on jkl;
  • Your left  hand fingers should rest on asdf