Datasheet
The command 10x deletes ten characters after the cursor position and 20dd
deletes twenty lines.
The most important commands in last line mode are shown in Table 21.3.
Table 21.3: Complex Commands of the vi Editor
:q! exits vi without saving any changes
:w filename saves as filename
:x saves the modified file and exits the editor
:e filename edits (loads) filename
:u undoes the last edit command
280 21.4. The vi Editor










