@hi
start with ed, then ex, then vi
edit: but when you do the jump from vi to vim, replace vimscript with uxn