hi
I want to view the line numbers in /bin/rvi when i open a file to edit in a script.
The default properites of vi editor are not set to view line numbers and not allowed to change them.
So instead of doing :set nu everytime editor opens the file, how it can be set
temporarily when script is run to view line numbers and line breaks.
You can set this up in your vi initialization file. Just add the line:
set number
to that file. Line numbers will be added just like you entered :set number from within vi.
You can try to make an editor start-up file, .exrc and put the command to enter number lines in it!
On the other hand, the 'r' in rvi means that this is a 'restrictive' vi and you may not be able to make the changes that you want. Can you run vi, vim or gvim?