If you wanted to comment out lines 20 to 40 of a file, use the following:
:20,40s/^/# /
Use
:set number
to enable visible line numbers.
If you wanted to comment out lines 20 to 40 of a file, use the following:
:20,40s/^/# /
Use
:set number
to enable visible line numbers.
Well you can install VIM, or if that’s not practical (or if you’re not in the mood to install VIM and its required dependencies on the hundred or so boxes you log into), then the command “stty columns 120” will do ya.