Slide 1

Slide 1 text

VIM precision editing at the speed of thought Drew Neil, @nelstrom November 7th 2012, Øredev

Slide 2

Slide 2 text

TWO REASONS YOU DIS VIM

Slide 3

Slide 3 text

1. You don’t grok Vim

Slide 4

Slide 4 text

1. You don’t grok Vim i don’t blame you

Slide 5

Slide 5 text

2. You confuse Vim with vi

Slide 6

Slide 6 text

2. You confuse Vim with vi shame on you

Slide 7

Slide 7 text

http://twitter.com/kentbrew/status/15419224013

Slide 8

Slide 8 text

MODAL INTERFACES

Slide 9

Slide 9 text

http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html

Slide 10

Slide 10 text

why modal?

Slide 11

Slide 11 text

MODAL INTERFACES are economical

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

In a MODAL interface Every BUTTON performs a different function in each mode

Slide 15

Slide 15 text

In a TOUCH interface Every PIXEL performs a different function in each mode

Slide 16

Slide 16 text

MODAL INTERFACES are everywhere

Slide 17

Slide 17 text

MODAL INTERFACES TextMate: ⌘F

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

MODAL INTERFACES TextMate: ⌘A

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

TextMate is a MODAL EDITOR

Slide 23

Slide 23 text

TextMate is a MODAL EDITOR not a very good one

Slide 24

Slide 24 text

MODAL INTERFACES are everywhere

Slide 25

Slide 25 text

h.koppdelaney http://www.flickr.com/photos/h-k-d/4490192739/

Slide 26

Slide 26 text

http://www.flickr.com/photos/katzarella/6378185339/

Slide 27

Slide 27 text

TARGET PRACTICE

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

MOUSE

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

the time required to rapidly move to a target area is a function of the distance to and the size of the target FITT’S LAW

Slide 32

Slide 32 text

http://particletree.com/features/visualizing-fittss-law/

Slide 33

Slide 33 text

[duh] FITT’S LAW

Slide 34

Slide 34 text

http://particletree.com/features/visualizing-fittss-law/

Slide 35

Slide 35 text

while (!thereYet) { keepGoing(); }

Slide 36

Slide 36 text

http://www.flickr.com/photos/darwinbell/316668966/

Slide 37

Slide 37 text

HUNT & PECK

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

while (!thereYet) { keepGoing(); }

Slide 41

Slide 41 text

Photograph by Hannah Adcock

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

VIM: PREHISTORY

Slide 44

Slide 44 text

http://www.flickr.com/photos/splorp/6551397629/in/photostream/

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

while (!thereYet) { keepGoing(); }

Slide 48

Slide 48 text

PRECISION TARGETING

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

two steps along, then one step along the perpendicular axis The Knight can move

Slide 51

Slide 51 text

to the closest squares that no other piece can reach The Knight can move

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

FINDING CHARACTERS

Slide 56

Slide 56 text

FINDING CHARACTERS f{char} jumps to the next occurrence of {char}

Slide 57

Slide 57 text

The Knight can move to the closest squares that no other piece can reach t

Slide 58

Slide 58 text

The Knight can move to the closest squares that no other piece can reach t

Slide 59

Slide 59 text

The Knight can move to the closest squares that no other piece can reach t v f p The Knight can move to the closest squares that no other piece can reach p

Slide 60

Slide 60 text

http://www.flickr.com/photos/silkegb/2745580110/

Slide 61

Slide 61 text

The Knight can move to the closest squares that no other piece can reach t

Slide 62

Slide 62 text

The Knight can move to the closest squares that no other piece can reach t

Slide 63

Slide 63 text

The Knight can move to the closest squares that no other piece can reach t The Knight can move to the closest squares that no other piece can reach t v f t

Slide 64

Slide 64 text

The Knight can move to the closest squares that no other piece can reach t The Knight can move to the closest squares that no other piece can reach t v f t ;

Slide 65

Slide 65 text

The Knight can move to the closest squares that no other piece can reach t The Knight can move to the closest squares that no other piece can reach t v f t ; ;

Slide 66

Slide 66 text

The Knight can move to the closest squares that no other piece can reach t The Knight can move to the closest squares that no other piece can reach t v f t ; ; ;

Slide 67

Slide 67 text

I’ve been expecting you, Mr Bond. I

Slide 68

Slide 68 text

I’ve been expecting you, Mr Bond. I delete this

Slide 69

Slide 69 text

I’ve been expecting you, Mr Bond. I f , I’ve been expecting you, Mr Bond. , delete this

Slide 70

Slide 70 text

I’ve been expecting you, Mr Bond. I f , I’ve been expecting you, Mr Bond. , d t . I’ve been expecting you. . delete this

Slide 71

Slide 71 text

http://robots.thoughtbot.com/post/13164810557/the-vim-learning-curve-is-a-myth No one ever says “I’d love to learn Street Fighter 2, but there are just so many combos!” Ben Orenstein

Slide 72

Slide 72 text

Illustration by Ben Cormack

Slide 73

Slide 73 text

Illustration by Ben Cormack

Slide 74

Slide 74 text

define regions of text by structure TEXT OBJECTS

Slide 75

Slide 75 text

“quotes” a” - a quoted string i” - inner quoted string

Slide 76

Slide 76 text

(parentheses) a) - all of a (block) i) - inside of a (block)

Slide 77

Slide 77 text

[brackets] a] - all of a [block] i] - inside of a [block]

Slide 78

Slide 78 text

{braces} a} - all of a {block} i} - inside of a {block}

Slide 79

Slide 79 text

tags at - all of a tag block it - inside of a tag block

Slide 80

Slide 80 text

refs: { clearButton: 'button[action=clearHomeBadge]', starButton: 'button[action=pingHomeBadge]' } a

Slide 81

Slide 81 text

refs: { clearButton: 'button[action=clearHomeBadge]', starButton: 'button[action=pingHomeBadge]' } a v i [

Slide 82

Slide 82 text

refs: { clearButton: 'button[action=clearHomeBadge]', starButton: 'button[action=pingHomeBadge]' } a refs: { clearButton: 'button[action=clearHomeBadge]', starButton: 'button[action=pingHomeBadge]' } e v i [

Slide 83

Slide 83 text

refs: { clearButton: 'button[action=clearHomeBadge]', starButton: 'button[action=pingHomeBadge]' } e i ‘ refs: { clearButton: 'button[action=clearHomeBadge]', starButton: 'button[action=pingHomeBadge]' } ]

Slide 84

Slide 84 text

a } refs: { clearButton: 'button[action=clearHomeBadge]', starButton: 'button[action=pingHomeBadge]' } ] refs: { clearButton: 'button[action=clearHomeBadge]', starButton: 'button[action=pingHomeBadge]' } }

Slide 85

Slide 85 text

http://www.flickr.com/photos/liquene/3177469139/

Slide 86

Slide 86 text

AUTOMATION

Slide 87

Slide 87 text

Illustration by Ben Cormack

Slide 88

Slide 88 text

QUESTIONS?

Slide 89

Slide 89 text

No content