A two hours workshop on Vim.
Start the editor using the provided script to disable all user plugins and arrow keys.
$ ./startvim.sh
Do the exercises in the following order:
- files/moving_the_cursor.txt
- files/dracula.txt (Practice all the movements of the cheatsheet)
- exercises/normal/operator_with_motion/*
- exercises/normal/actions/*
- exercises/normal/operator_with_text_objects/*
- exercises/insert/*
- exercises/visual/*
- exercises/command/*
- Front: Selection of operation commands (open files, move through windows...)
- Back: Actions, operations and motions available, sorted by mode (see bellow)
Understanding Vim modes is critical for the effective use of the editor.
- Is the default mode.
- Allows fast movement through the text
- Fast text modification
- Switching to other modes
- Modify the file inserting new text
- Select part of the text to operate over it
- Editor basic operation (open, close, write...)
- Bulk editing through
ex-commands
The cheatsheet is a derivative work of Martin “BruXy” Bruchanov's Vi IMproved cheatsheet with permission of the author.
This work is licensed under a Creative Commons Attribution 4.0 International License.