nilp0inter / Vim-for-Muggles

A course on Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vim for Muggles™

A two hours workshop on Vim.

Start the editor using the provided script to disable all user plugins and arrow keys.

$ ./startvim.sh

Exercises

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/*

The Cheatsheet

  • Front: Selection of operation commands (open files, move through windows...)
  • Back: Actions, operations and motions available, sorted by mode (see bellow)

Modes

Understanding Vim modes is critical for the effective use of the editor.

Normal Mode

  • Is the default mode.
  • Allows fast movement through the text
  • Fast text modification
  • Switching to other modes

Insert Mode

  • Modify the file inserting new text

Visual Mode

  • Select part of the text to operate over it

Command Mode

  • Editor basic operation (open, close, write...)
  • Bulk editing through ex-commands

License

The cheatsheet is a derivative work of Martin “BruXy” Bruchanov's Vi IMproved cheatsheet with permission of the author.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

About

A course on Vim

License:Creative Commons Attribution 4.0 International


Languages

Language:Batchfile 54.1%Language:Shell 45.9%