Personal Notes on 'Practical Vim' (2nd Edition)

I went through “Practical Vim - Second Edition” by Drew Neil and wrote down the parts I keep coming back to. Mostly for my own reference, but maybe useful to someone else.

image

Buffers

Mappings I use (from Tim Pope’s unimpaired.vim):

nnoremap <silent> [b :bprevious<CR>
nnoremap <silent> ]b :bnext<CR>
nnoremap <silent> [B :bfirst<CR>
nnoremap <silent> ]B :blast<CR>

Windows and tabs

I think of tabs as workspaces (one per task or context) and windows as views within a workspace.

Jumps and marks

Macros

Macros are one of those Vim features that feel clunky until they save you 20 minutes on a mechanical edit.

Search and replace

.vimrc

A few things I added to mine:

TLDR

“Practical Vim” covers a lot that’s easy to miss. These are the parts I actually use.

#Vim #Personal