Introduction to Vim – Two "Ah ha!" moments – Select a word in snake_case



Introduction to Vim – Two "Ah ha!" moments – Select a word in snake_case

0 0


intro-to-vim

Slides for my beginners Vim talk

On Github captbaritone / intro-to-vim

Introduction to Vim

Two "Ah ha!" moments

By Jordan Eldredge / @captbaritone

Part I

Vim Commands are a Language

Vim is a "modal" editor

What does that mean?

Non-modal editors use key "chords"

Vim is different

Vim's "Normal" Mode

Every key is available

Each key represents a word

Words can be combined into sentences

"The beginning of understanding the Zen of Vi comes when you realize that you are not memorizing key-bindings, but rather, you are learning a language." - Jeet Sukumaran

Don't memorize, compose!

Nouns

What is a noun?

Movements are Nouns

h j k l

w

$

}

verb + noun

d w

c $

v }

Vocabulary

10 words

21 commands

Commands grow exponentially

Expand your vocabulary

Learn words not hot keys

Compose don't memorize

Part II

Hone Your Vim

Vim requires customization

I was resistant to config files

GitHub Dotfiles

Keep all your configuration files in a public repository

Clone on every computer

Easily restore your setup

Makes customizing your editor viable

Embracing customization

Improve Your Workflow

Pay attention to pain points

Your editor is the heart of your workflow

Configuring Vim may have solve to your problem

Maybe there's a plugin

Examples of customizing Vim

Annoyances I solved with Vim

Select a word in snake_case

Edit your .vimrc

Boilerplate code

Add the Ultisnips Plugin

Finding files

Add the CtrlP Plugin

Hone your tools

Your editor is your most important tool

Choose one you can customize

Choose Vim!

Use GitHub Issues to track annoyances

Easy to record issues quickly

Easy to record progress on an issue

Your work is Googleable

My Dotfiles

github.com/captbaritone/dotfiles

Questions?

@captbaritone

github.com/captbaritone/intro-to-vim