zhuang@linux:~/reading/practical-vim/01-the-vim-way/$ less

Practical Vim / chapter 01

The Vim Way

$ grep tags 01-the-vim-way.md

This post extracts some knowledge from Chapter 1 – The Vim Way.

The dot command lets us repeat the last change.

The >G command increases the indentation from the current line until the end of the file.

Compound CommandEquivalent in Longhand
Cc$
scl
S^C
I^i
IntentActRepeatReverse
Make a change{edit}.u
Scan line for next characterf{char} / t{char};,
Scan line for previous characterF{char} / T{char};,
Scan document for next match/pattern<CR>nN
Scan document for previous match?pattern<CR>nN
Perform substitution:s/target/replacement&u
Execute a sequence of changesqx{changes}q@xu

* executes a search for the word under the cursor.

The Ideal: One Keystroke to Move, One Keystroke to Execute

zhuang@linux:~/reading/practical-vim/01-the-vim-way/$ comments