undo/redo in vi editor

  • I have been wanted this since long but never search if it’s avaiable or not.
  • I thought of writing some ebpf program which will trigger copy if we run run vi command. but there is already inbuild command in vi

command mode:

u
5u

insert mode:

:u
:undo

Redo:

CTRL + R
:redo

Published by

Leave a Reply

Your email address will not be published. Required fields are marked *