Learn Your Editor

(still a WIP for me ;)

Patrick Davey

 @psdavey

Photo credits: @malclocke / CC BY-SA 2.0

Photo credits: @malclocke / CC BY-SA 2.0

Features

Intro to vim

Demo!

What we'll cover

Editor should be:

Configurable

All aspects: c o l o r s, keybindings, fonts etc.

Extensible

Cope with new languages, compilation environment etc.

Programmable

macros, scripting etc.

Why vim?

Masochism

KIDDING!

Everywhere

Editing, shell, remote pairing...

Powerful

DSL for editing, modal

Masochism

Core Concepts

Modal

There are 6

Operators == verbs

c change
d delete
y yank (copy)

Motions / text-objects == nouns

w word
p paragraph
G to file end

Bored?

Photo credit: slolee / CC BY-NC-SA

Photo credit: IvanClow via VisualHunt / CC BY-NC

A few suggestions

  1. Use vimtutor if you're a beginner
  2. Do not try to learn everything at the start
  3. Build your own .vimrc up (but look to others for inspiration)
  4. Use :help & learn the single-letter keys & hjkl
  5. Go through the :h user-manual
  6. Watch the vimcasts.org episodes
  7. Watch Ben Orenstein's vim talk
  8. Read Practical Vim by Drew Neil
  9. Learn Vimscript the hard way

Thanks & Questions?

Slides can be found at:

Learn Your Editor

By Patrick Davey

Learn Your Editor

An introduction to customizing your editing environment, with a focus on vim.

  • 1,388