When you execute the command with vi editor. It will open the file.
1. Press INSERT key to enable editing the file.
2. Use the cursor key to navigation to the location where you want to add the export statements.
3. Press SHIFT + INSERT to paste the export statements.
4. After adding all the export statements, Press ESC key,
5. Type -
to write and save the content.
Please refer the tutorial link below for more details:
Hope this helps.