Helpful Information
 
 
Category: UNIX Help
how to NOT wrap lines in VI for viewing?

Hi all,

I am trying to read some log files that are very long per line. Is there way I can not wrap lines in VI so I can see line by line much more clear?

Thanks.

Try :set nowrap, works for me in vim, and also works when vim is in vi-compatible mode. So I think it should work.

hi Strike,

Yep, the VIM works fine, but unfortunatly I don't have that on the server I am working on, and I can't install one. I only got basic VI. Is there anyway to do it in VI?

Thanks for your help.










privacy (GDPR)