Chapter 8 of 16 · Deutschnullos.de

The editor

e – simple like nano, and if vi is in your blood, press Esc. Instead of vi, vim, nano, ed and Notepad.

e notizen.txt     edit (created on save if new)
e +120 main.c     straight to line 120
e -m main.c       start in vi mode (that's also how e starts as vi/vim)

Typing writes

No command mode at the start: you type, it's there. Everything else goes through Ctrl, the last line shows the most important keys.

^Ssave^Qquit (twice: discard changes)
^Fsearch (again: next)^Ggo to line
^Z / ^Yundo / redo (unlimited)^K / ^Ucut / paste line
^A / ^Estart / end of lineEscvi mode

vi mode

h j k l (also 5j), w b 0 $, gg G, x dd dw yy p, i a o back to writing, u, /text n N, :w :q :wq :q!, ZZ. The Ctrl keys work here too. No ., no macros, no :s – sr can do replacing.

What it can do

What's (still) missing

Marking/selection, search and replace, a second window. Backward search is slow in very large files.