April 4, 2014

VIM cheatsheet

§ tech     # vi vim cheatsheet

Putting my favourite vim cheat sheet here, so that I don’t have to plough through google results next time I need to recall how to use named registers.

Basic .vimrc

syntax on
set nocp hid ru showcmd vb wmnu noeb et is si nu
set ts=4 sts=4 sw=4
set bs=2 ls=2
set modeline modelines=5
set list listchars=tab:»·,trail:·
set viminfo=%,'50,<1000,:100

Quick reference

command notes
set tw=80 enable word wrap
set fo+=n format numbered lists with indent

— `If you knew Time as well as I do,' said the Hatter, `you wouldn't talk about wasting IT. It's HIM.'
$ Last updated: Feb 7, 2021 at 13:38 (EET) $