Emulation of the vi % command