<?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: vi problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100842#M311852</link>
    <description>Thanks for replying but the lines are not long.</description>
    <pubDate>Mon, 12 Nov 2007 11:07:49 GMT</pubDate>
    <dc:creator>Allanm</dc:creator>
    <dc:date>2007-11-12T11:07:49Z</dc:date>
    <item>
      <title>vi problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100840#M311850</link>
      <description>&lt;BR /&gt;When opening a file in vi I am able to view close to ~3000 lines even though the file runs 6000 lines. How to resolve this.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan</description>
      <pubDate>Mon, 12 Nov 2007 10:58:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100840#M311850</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2007-11-12T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: vi problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100841#M311851</link>
      <description>There are two hard-coded limits at play in vi:&lt;BR /&gt;&lt;BR /&gt;1) Maximum line length - 4096 characters&lt;BR /&gt;2) Maximum number of lines - 234239&lt;BR /&gt;&lt;BR /&gt;Are the lines extremely long?&lt;BR /&gt;&lt;BR /&gt;You could also be hitting maxdsiz so chack that setting.&lt;BR /&gt;&lt;BR /&gt;It would help to know what the product of&lt;BR /&gt;3000 * line length is.&lt;BR /&gt;&lt;BR /&gt;You can always use split to divide the file into more manageable chucks. Man split for details.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Nov 2007 11:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100841#M311851</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-11-12T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: vi problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100842#M311852</link>
      <description>Thanks for replying but the lines are not long.</description>
      <pubDate>Mon, 12 Nov 2007 11:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100842#M311852</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2007-11-12T11:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: vi problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100843#M311853</link>
      <description>&amp;gt;&amp;gt; When opening a file in vi I am able to view close to ~3000 lines even though the file runs 6000 lines&lt;BR /&gt;&lt;BR /&gt;q1: How do you know you only read about 3000 lines? ^G ?&lt;BR /&gt;&lt;BR /&gt;q2: Is there an error message to share?&lt;BR /&gt;&lt;BR /&gt;What is the output for: wc &lt;FILE&gt;&lt;BR /&gt;What is the output for: ls -l &lt;FILE&gt;&lt;BR /&gt;What is the output for:&lt;BR /&gt;&lt;BR /&gt;$ perl -ne '$l=length; if($l&amp;gt;$m) {$m=$l; $n=$.} }{print qq(Longest=$m at line $n\n)' &lt;FILE&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE&gt;&lt;/FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100843#M311853</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-11-12T12:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: vi problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100844#M311854</link>
      <description>I am making the silly assumption that you are trying to read a text file rather rather than a data file which happens to also contain some printable ASCII characters. Vi should have no trouble reading the entire file if it is as you described but I'm betting there is a herd of binary data embedded in your file.&lt;BR /&gt;&lt;BR /&gt;A good technique is to run your file through od (or xd) and then use vi to examine the output.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;xd -v -Ad -tcxC myfile &amp;gt; mytextfile&lt;BR /&gt;vi mytextfile&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:28:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100844#M311854</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-11-12T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: vi problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100845#M311855</link>
      <description>another silly assumption: You're not getting the "0 blocks..disk full error"? That'd be too easy</description>
      <pubDate>Mon, 12 Nov 2007 13:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100845#M311855</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-11-12T13:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: vi problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100846#M311856</link>
      <description>&amp;gt;How to resolve this?&lt;BR /&gt;&lt;BR /&gt;What does vi say when it starts?  Does it give the number of lines and chars?  Does it match with Hein's wc suggestions?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Clay: There are two hard-coded limits at play in vi:&lt;BR /&gt;&amp;gt;1) Maximum line length - 4096 characters&lt;BR /&gt;&lt;BR /&gt;If so, you need to use vim.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) Maximum number of lines - 234239&lt;BR /&gt;&lt;BR /&gt;I have no problems with 303K lines.  And even though it says "silently enforced", I'm not sure where I'm losing data?  A simple insertion at the start lost nothing.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Clay: A good technique is to run your file through od (or xd) and then use vi to examine the output.&lt;BR /&gt;&lt;BR /&gt;Using vis(1) and inv(1) would work better if the file is mostly ascii.</description>
      <pubDate>Mon, 12 Nov 2007 23:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100846#M311856</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-12T23:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: vi problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100847#M311857</link>
      <description>Do you want to vi the file just to look at it?  Use the "more" command.&lt;BR /&gt;&lt;BR /&gt;The file is too big to edit with vi?  Make a copy of it smaller but cutting it into pieces.  I would do the same thing with a big cookie that is too big to eat.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Nov 2007 07:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-problem/m-p/4100847#M311857</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2007-11-13T07:58:10Z</dc:date>
    </item>
  </channel>
</rss>

