<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: No line wrap in vi in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547955#M652409</link>
    <description>&amp;gt; I dont need the whole record, just the first 30 to 80 characters of those lines.&lt;BR /&gt;&lt;BR /&gt;If you really only need those characters:&lt;BR /&gt;&lt;BR /&gt;# cut -c30-80 /path/to/file&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Dec 2009 12:25:02 GMT</pubDate>
    <dc:creator>Viktor Balogh</dc:creator>
    <dc:date>2009-12-11T12:25:02Z</dc:date>
    <item>
      <title>No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547952#M652406</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to work with a file that has very long lines. I dont need the whole record, just the first 30 to 80 characters of those lines. Vi wraps the lines but I need to see them line below line without the line wraps between them. It’s a basic vi (no vim mode), so :set nowrap doesn’t work. :set all shows wrapmargin=0 but if I do wrapmargin=7 nothing happens.&lt;BR /&gt;What can be done?&lt;BR /&gt;&lt;BR /&gt;Thanks for the answers.&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Dec 2009 18:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547952#M652406</guid>
      <dc:creator>yaron1</dc:creator>
      <dc:date>2009-12-10T18:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547953#M652407</link>
      <description>wrapmargin=7 will wrap after the next white space that is less than 7 characters from the current right margin. With an 80 character line, typing text at column 73 will trigger a wrap. But only when inserting. It does not affect the appearance of existing lines. So :set wm=0 (vi and vim) is the same as :set nowrap (vim only).</description>
      <pubDate>Fri, 11 Dec 2009 03:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547953#M652407</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-12-11T03:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547954#M652408</link>
      <description>How long are your lines?&lt;BR /&gt;I suppose you could set COLUMNS very large and then have your terminal emulator have the lines fall off the right.</description>
      <pubDate>Fri, 11 Dec 2009 09:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547954#M652408</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-11T09:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547955#M652409</link>
      <description>&amp;gt; I dont need the whole record, just the first 30 to 80 characters of those lines.&lt;BR /&gt;&lt;BR /&gt;If you really only need those characters:&lt;BR /&gt;&lt;BR /&gt;# cut -c30-80 /path/to/file&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 12:25:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547955#M652409</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-12-11T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547956#M652410</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;:set wm=0 doesnt help. Do I need to put it in a restart hidden file so it takes effect before vi starts (which file then)? &lt;BR /&gt;I want to be able to scroll the lines to the right if I need to, so cut is not good. I want to see the lines in normal size so making long column will not be convenient to work with long column. Here is my :set all&lt;BR /&gt;:set all&lt;BR /&gt;autoindent          mesg                                noslowopen&lt;BR /&gt;autoprint           nomodelines                         tabstop=8&lt;BR /&gt;autowrite           nonumber                            taglength=0&lt;BR /&gt;nobeautify          nonovice                            tags=tags /usr/lib/tags&lt;BR /&gt;directory=/var/tmp  nooptimize                          tagstack&lt;BR /&gt;nodoubleescape      paragraphs=IPLPPPQPP LIpplpipnpbp   term=hp&lt;BR /&gt;noedcompatible      prompt                              noterse&lt;BR /&gt;noerrorbells        readonly                            timeout&lt;BR /&gt;noexrc              redraw                              timeoutlen=500&lt;BR /&gt;flash               remap                               ttytype=hp&lt;BR /&gt;hardtabs=8          report=1                            warn&lt;BR /&gt;noignorecase        scroll=11                           window=23&lt;BR /&gt;keyboardedit        sections=NHSHH HUuhsh+c             wrapscan&lt;BR /&gt;nokeyboardedit!     shell=/usr/bin/sh                   wrapmargin=0&lt;BR /&gt;nolisp              shiftwidth=8                        nowriteany&lt;BR /&gt;nolist              showmatch&lt;BR /&gt;magic               noshowmode&lt;BR /&gt;[Hit return to continue]</description>
      <pubDate>Fri, 11 Dec 2009 12:48:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547956#M652410</guid>
      <dc:creator>yaron1</dc:creator>
      <dc:date>2009-12-11T12:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547957#M652411</link>
      <description>in vim this should work:&lt;BR /&gt;&lt;BR /&gt;:set nowrap&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 13:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547957#M652411</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-12-11T13:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547958#M652412</link>
      <description>if the filename is myfile.out&lt;BR /&gt;IF you just need to look at it without modifying it.&lt;BR /&gt;&lt;BR /&gt;adjust  myfile.out &amp;gt; boguscopy.out&lt;BR /&gt;vi boguscopy.out&lt;BR /&gt;&lt;BR /&gt;or while in vi.....&lt;BR /&gt;vi myfile.out&lt;BR /&gt;:.,.!adjust&lt;BR /&gt;:q!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 14:56:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547958#M652412</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2009-12-11T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547959#M652413</link>
      <description>&amp;gt; scroll to the right...&lt;BR /&gt; &lt;BR /&gt;It sounds as if you want exactly one line per line on the screen and then be able to scroll everything to the right. vi is designed to work with real terminal windows, not GUIs that represent the text file. You can certainly put settings into $HOME/.exrc which will take effect as vi starts but it won't change the appearance of existing lines.</description>
      <pubDate>Fri, 11 Dec 2009 21:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547959#M652413</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-12-11T21:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: No line wrap in vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547960#M652414</link>
      <description>&amp;gt;Itâ  s a basic vi (no vim mode), so :set nowrap doesnâ  t work.&lt;BR /&gt;ok, that one for vim isn't an option for you, I just noticed it right after I posted. But another idea, if read-only mode is enough:&lt;BR /&gt;&lt;BR /&gt;# less -S FILENAME&lt;BR /&gt;&lt;BR /&gt;this way the long lines will be chopped, and you an navigate with arrow keys. I think that's what you want. If you want editing also, press h and see the last section of the help of less. I think somehow editing is also possible with less.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Dec 2009 09:38:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-line-wrap-in-vi/m-p/4547960#M652414</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-12-13T09:38:52Z</dc:date>
    </item>
  </channel>
</rss>

