How to display each line number in vi?
-
:se nu
-
:se
-
:show number
-
:set number
A,D
Correct answer
Explanation
In vi editor, both :se nu (abbreviation of :set number) and :set number display line numbers. The :se nu form works because 'se' is the short form of 'set' and 'nu' is the short form of 'number'. The :se command alone is incomplete, and :show number is not valid vi syntax.