Tuesday, September 11, 2012

vi no wrap

Editing ascii printouts of hex dumps of packet data, want to see one per line. In vi, it's a simple command:

:set nowrap.

From here: http://www.devdaily.com/blog/post/linux-unix/vi-editor-dont-wrap-long-lines

Here's another thread that seems to indicate that there is a lot more to look into, i.e. :set newrap doesn't seem to disable an automatic newline feature that I don't know if I believe I've ever run into:

https://stackoverflow.com/questions/2280030/how-to-stop-line-breaking-in-vim