01. Navigating controls h, j, k, l, ESC, [0-9]

Using a Mac and can't hold down the hjkl keys?

This is due to the default settings have the Apple press-and-hold feature enabled.

To disable this, simply go into your terminal and paste this code:defaults write -g ApplePressAndHoldEnabled -bool true

You may need to log in/out to restart your user preference settings.

Hello! Click this region to activate me and start learning about Vim! Let's jump right to it! Vim is a "modal editor", meaning it has different modes. When you open vim, it opens in COMMAND mode. If you ever find Vim in a different mode (or if your controls are acting wonky), simply press ESC to re-activate COMMAND mode. Great! We'll start with basic navigation. To move around in Vim, press: ^ k < h l > j v l - move right h - move left j - move down k - move up Time to practice! Try going right (l) and left (h). Now try moving down (j)! Let's move back up (k). Stray away from the [[arrow keys]]! It may seem easier to use the arrow keys, but those two seconds you take to move over to use them can actually add up to a lot on the course of your programming career! Let's try navigating through this haiku: Yay, we are learning how to navigate with Vim This is so much fun! We can make moving around more efficient using a numerical modifier. Simply precede the command with an value [0-9]. For example, pressing '4h' moves 4 characters to the left. Review Questions: 1) Why are we learning Vim? (scroll down for answer) Solutions: 2) It's fast, lightweight, and available on almost every computer.

Aching back from coding all day?

Self-Massage Tool

Aching back from coding all day? Try Back Problems

Relieve spasms, tight muscles, trigger points and pressure points with the Body Back Buddy! This trigger point massage is designed to help you self-message any area of your body - especially those that are hard to reach. Keeping your muscles relaxes and out of contraction is importan in helping to reduce pain and prevent muscle injury.

$ Check price
29.9529.95Amazon 4.5 logo(3,443+ reviews)

More Back Problems resources

Take your Linux skills to the next level!

Linux for Beginners

Take your Linux skills to the next level! Try Linux & UNIX

Linux for Beginners doesn't make any assumptions about your background or knowledge of Linux. You need no prior knowledge to benefit from this book. You will be guided step by step using a logical and systematic approach. As new concepts, commands, or jargon are encountered they are explained in plain language, making it easy for anyone to understand.

$ Check price
24.9924.99Amazon 4.5 logo(101+ reviews)

More Linux & UNIX resources

Ad