Slide 1

Slide 1 text

28th January, 2014 Drew Neil @nelstrom FOLLOW my

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

Using let mapleader = "," nnoremap :noh

Slide 4

Slide 4 text

https://github.com/AndrewRadev/splitjoin.vim/issues/14

Slide 5

Slide 5 text

VIM’S GRAMMAR and its blind-spots

Slide 6

Slide 6 text

operator operator d d y y > > delete line yank line indent line

Slide 7

Slide 7 text

operator motion d w y $ > G delete word yank from cursor to EOL indent to end of file

Slide 8

Slide 8 text

operator non-motion d p d o same as :diffput same as :diffget AVAILABLE!

Slide 9

Slide 9 text

operator non-motion y s surround.vim c o unimpaired.vim c x exchange.vim

Slide 10

Slide 10 text

operator-1 operator-2 d c c d AVAILABLE!

Slide 11

Slide 11 text

TEXT-OBJECTS have vacancies

Slide 12

Slide 12 text

{i,a} object i “ a ) i t inside double-quotes around parentheses inside XML tag

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

{i,a} object i a AVAILABLE! AVAILABLE!

Slide 15

Slide 15 text

{i,a} object {i,a} l {i,a} e {i,a} r vim-textobj-line vim-textobj-entire vim-textobj-rubyblock

Slide 16

Slide 16 text

https://github.com/kana/vim-textobj-user/wiki

Slide 17

Slide 17 text

NAMESPACED MAPS have vacancies

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

namespace command g w z a reformat selected text toggle fold open/closed {[,]} c jump to prev/next diff

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

namespace command g c {[,]} o commentary.vim unimpaired.vim {[,]} {u,x,y} unimpaired.vim

Slide 22

Slide 22 text

USELESS COMMANDS are useless

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

SUPERCHARGE built-in commands

Slide 25

Slide 25 text

namespace command g f rails.vim

Slide 26

Slide 26 text

OVERRIDE COMMANDS that are meant to be overridden

Slide 27

Slide 27 text

executes `formatprg` = {motion} executes `equalprg` gq {motion}

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Using formatprg let &formatprg=“pandoc -f html -t markdown” executes `formatprg`, filtering text through pandoc gq {motion}

Slide 30

Slide 30 text

28th January, 2014 Drew Neil @nelstrom FOLLOW my