Multiple choice technology platforms and products

Choose the output of the command "A9dd.

  1. Delete 9 lines to buffer a

  2. Put 9lines from buffer a after cursor

  3. Delete 9 lines and append to buffer a

  4. Yank 9 lines to buffer a

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In vi editor, uppercase register names like 'A' mean append to the corresponding named register 'a'. The command '9dd' deletes 9 lines. Therefore 'A9dd' deletes 9 lines and appends them to buffer a, preserving any existing content already in that register.