Hacker News new | ask | show | jobs
by cup-of-tea 3188 days ago
What kind of file have such long lines? Have you considered a text editor that can wrap lines?
2 comments

Depending on how long the lines are, wrapping may turn out to be a pain in the neck because (part of) one or two lines take up the entire pane. So, though wrapping long lines works sometimes, it genuinely is impractical at other times. Also, like the other poster says, it's a matter of preference too. If someone likes to edit a line while having an eye on the lines below and above it, wrapping doesn't help.
Data files and source code. Sure I have considered using line wrap, but I don't like it.
I've always avoided this by formatting source code to fit in 80 chars, using "long" data format where possible, and just not editing big data files interactively (I use sed or awk).