_ _
(_) ___ | |_ ____
| |/ _ \| __|_ /
| | (_) | |_ / /
_/ |\___/ \__/___|
|__/
Notes for Vim presentation
- gU Change to upper case
- gu Change to lower case
- ~ Invert case of current character / selection
Topics:
- modes
- insert i Also: I,a,A,c
- normal Also:
- command :
- visual v
- visual line v
- visual block v
- replace R
- grammar & vocabulary
- nouns (motions) hjkl,0,$,b,w,W,
- verbs (operators) y,d,c :h operator
- text objects i+object, a+object
- Running shell commands and filters
- Problems
- Cutting and pasting to other applications
- screen lines vs file lines
- Examples
- Motions, sentences, paragraphs, etc.
- FizzBuzz
- Class email list
- Markdown / pandoc
Things to use
- screenkey
- grep, awk, nl, seq, sort, shuf
References / Reading
YouTube video:
Mastering the Vim Language
thoughtbot / Chris Toomey
https://www.youtube.com/watch?v=wlR5gYd6um0
"Stop the Vim configuration madness"
Alex Young
You know what improves productivity?
Mastering motions and operators.
Stack Overflow post:
Your problem with Vim is that you don't grok vi.