VimTutor+
About
Install Vim
Exercises
Cursor Movement 1
/** * CURSOR MOVEMENT 1 * * When you first start Vim, you begin in 'Command Mode' (your cursor will blink green). * In command mode all your keys are mapped to special shortcuts so you * cannot insert text as you normally would. Instead, command mode is used to * navigate and edit existing text. * The h, j, k, l keys take the role of your arrow keys. * * j moves the cursor down * k moves the cursor up * h moves the cursor left * l moves the cursor right * **/ /* * EXERCISE 1: * Move your cursor to the beginning of the passage below. Using the basic nav keys, * move the cursor to the end of the line, then go down to the next line, and scroll * back to the beginning of the line. * * -------------------------------------------------------->| * |<-------------------------------------------------------v * v-------------------------------------------------------> * * If all of a sudden you begin inserting text, press 'esc' and you will return to * command mode where your cursor will blink green and the h, j, k, l keys will * begin to move as expected. * */
Previous: Inserting Text
Next: Cursor Movement 2