129k views
4 votes
How can you find out information about the status of an editing session while in the vi editor?

1) Use the :info command
2) Check the status line at the bottom of the screen
3) Press the Esc key followed by the Shift+g key
4) Open another terminal window and check the process status

1 Answer

5 votes

Final answer:

In vi, you can check the status line at the bottom of the screen for current session information. It displays the mode, line number, and messages. Specific commands like ':info' do not exist in vi.

Step-by-step explanation:

To find out information about the status of an editing session while in the vi editor, option 2, checking the status line at the bottom of the screen, is typically the standard way. This status line can give you information such as the mode you are currently in (insert, command, etc.), line number, and any messages from vi. The mentioned :info command does not exist in vi. To ensure changes are not saved, you would not use the Track Changes as that applies to different software such as Microsoft Word. Instead, you would not write the changes to the file before exiting vi. For checking all changes in vi, you would not use the Reviewing Pane which is again from Word, but you can undo and redo changes with 'u' and 'Ctrl-R' respectively. If you need to navigate to a specific line, you can use the command ':number' where number is the line number you wish to go to.

User Sfendell
by
8.3k points