ed, ex and vi

ed

Introduction

ex

Introduction

vi

Introduction

zz; ZZ

text folding.

Input mode

exit with escape

Basic editing

cursor before or after

i/a

new line above or below

O/o

undo

u

Command mode

quit

:q

write and quit

:wq

quit without saving

:q!

vi has .swp files. swap files. recovery file for file being edited.

vi copy paste

Opening other files

:e[dit] FILE_PATH
:vi[sual] FILE_PATH