<?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: Needs vi editor tips in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447598#M9848</link>
    <description>Another option;&lt;BR /&gt;&lt;BR /&gt;In the vi command mode, do the following:&lt;BR /&gt;&lt;BR /&gt;:20,50 s/oldpattern/newpattern/&lt;BR /&gt;&lt;BR /&gt;The above is saying on lines 20 - 50, do a substitute command from the oldpattern to the newpattern. &lt;BR /&gt;&lt;BR /&gt;As always, if you are testing some new editor functions, make a backup copy of the file before you do the experiments.</description>
    <pubDate>Mon, 25 Sep 2000 12:08:08 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2000-09-25T12:08:08Z</dc:date>
    <item>
      <title>Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447596#M9846</link>
      <description>Hi, &lt;BR /&gt;I'm suffering from vi command.&lt;BR /&gt;I know the '.' character redo the previous command in editing mode. &lt;BR /&gt;How can I apply this redo command for several lines in one command?&lt;BR /&gt;for example, I modify number 3 line and I want apply this from 20 to 50 line.&lt;BR /&gt;How can I do this?&lt;BR /&gt;Hope to get your help.</description>
      <pubDate>Mon, 25 Sep 2000 07:57:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447596#M9846</guid>
      <dc:creator>+++¦-°</dc:creator>
      <dc:date>2000-09-25T07:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447597#M9847</link>
      <description>&lt;BR /&gt;Goto line 20 by doing :20&lt;BR /&gt;Then to repeat your command for the next 30 lines (from 20-50) you can supply a count to .   eg. 30.&lt;BR /&gt;This should repeat your command for the next 30 lines. Tested it, works fine. you may need to go to line 20 first, do your command for the first line, then do 29.&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Sep 2000 08:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447597#M9847</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-09-25T08:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447598#M9848</link>
      <description>Another option;&lt;BR /&gt;&lt;BR /&gt;In the vi command mode, do the following:&lt;BR /&gt;&lt;BR /&gt;:20,50 s/oldpattern/newpattern/&lt;BR /&gt;&lt;BR /&gt;The above is saying on lines 20 - 50, do a substitute command from the oldpattern to the newpattern. &lt;BR /&gt;&lt;BR /&gt;As always, if you are testing some new editor functions, make a backup copy of the file before you do the experiments.</description>
      <pubDate>Mon, 25 Sep 2000 12:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447598#M9848</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-09-25T12:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447599#M9849</link>
      <description>You can use all of the range editing commands that are documented in "man ex".  Those are useful for repeating a substitution over a range of lines.&lt;BR /&gt;You can also use the :map feature of ex to make a single key map to a long sequence of keys.  For example,&lt;BR /&gt;:map #1 cwnew^V^[/old^V^M&lt;BR /&gt;would make the F1 key change a world to "new", then search for an occurance of "old".  The escape and carriage return characters are quoted with a control-V character.  You can map normal characters, function keys, or characters typed with control or alt combinations.  Almost all of the normal characters are already used by some vi binding.</description>
      <pubDate>Mon, 25 Sep 2000 15:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447599#M9849</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2000-09-25T15:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447600#M9850</link>
      <description>Setup $HOME/.exrc and include&lt;BR /&gt;set nu&lt;BR /&gt;set showmode&lt;BR /&gt;Log out and login, then try the steps contributed by your peers.</description>
      <pubDate>Mon, 25 Sep 2000 16:32:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447600#M9850</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-09-25T16:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447601#M9851</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The command to redo the last 'ex' command is '&amp;amp;'.&lt;BR /&gt;&lt;BR /&gt;For example, you type&lt;BR /&gt;:s/oldpat/newpat/&lt;BR /&gt;&lt;BR /&gt;and want to re-apply the same change to line 20-50, type&lt;BR /&gt;:20,50&amp;amp;&lt;BR /&gt;&lt;BR /&gt;This should do the trick.&lt;BR /&gt;&lt;BR /&gt;Bye,&lt;BR /&gt;Rik.</description>
      <pubDate>Tue, 26 Sep 2000 04:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447601#M9851</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2000-09-26T04:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447602#M9852</link>
      <description>If you really some more powerful editing features, but still like vi, trying getting a copy of vim.   Has the ability to learn sequences of commands and then execute them on a keystroke.  Available at the porting center.</description>
      <pubDate>Wed, 27 Sep 2000 16:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447602#M9852</guid>
      <dc:creator>Rick Beldin</dc:creator>
      <dc:date>2000-09-27T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447603#M9853</link>
      <description>&lt;BR /&gt;vi is capable to execute macros too.&lt;BR /&gt;&lt;BR /&gt;See man vi and search for @buffer.</description>
      <pubDate>Thu, 28 Sep 2000 10:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447603#M9853</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2000-09-28T10:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Needs vi editor tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447604#M9854</link>
      <description>Award your points!</description>
      <pubDate>Thu, 28 Sep 2000 11:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/needs-vi-editor-tips/m-p/2447604#M9854</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-09-28T11:04:56Z</dc:date>
    </item>
  </channel>
</rss>

