<?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: Some Tips &amp;amp; Tricks for  &amp;quot;VI Editor&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755262#M945293</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a link to VI tutorial&lt;BR /&gt;&lt;A href="http://ecn.www.ecn.purdue.edu/ECN/Documents/VI/" target="_blank"&gt;http://ecn.www.ecn.purdue.edu/ECN/Documents/VI/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mateja</description>
    <pubDate>Mon, 01 Jul 2002 06:46:23 GMT</pubDate>
    <dc:creator>Mateja Bezjak</dc:creator>
    <dc:date>2002-07-01T06:46:23Z</dc:date>
    <item>
      <title>Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755261#M945292</link>
      <description>Hi Friends,&lt;BR /&gt;Please give some tips, to work better and smart with VI editor.&lt;BR /&gt;Anything related to vi, from setting up terminal for vi editor to editing multiple files etc&lt;BR /&gt;&lt;BR /&gt;Thanks in Adv&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shah</description>
      <pubDate>Mon, 01 Jul 2002 06:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755261#M945292</guid>
      <dc:creator>Shahbaz_1</dc:creator>
      <dc:date>2002-07-01T06:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755262#M945293</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a link to VI tutorial&lt;BR /&gt;&lt;A href="http://ecn.www.ecn.purdue.edu/ECN/Documents/VI/" target="_blank"&gt;http://ecn.www.ecn.purdue.edu/ECN/Documents/VI/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mateja</description>
      <pubDate>Mon, 01 Jul 2002 06:46:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755262#M945293</guid>
      <dc:creator>Mateja Bezjak</dc:creator>
      <dc:date>2002-07-01T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755263#M945294</link>
      <description>Here's two simple tricks that are used almost everyday to change one string to another.&lt;BR /&gt;&lt;BR /&gt;Say you want to change in a file the string joe to fred.&lt;BR /&gt;&lt;BR /&gt;From command mode:&lt;BR /&gt;:1,$s/joe/fred/g&lt;BR /&gt;&lt;BR /&gt;To insert a string at the beginning&lt;BR /&gt;of the line&lt;BR /&gt;:1,$s/^/insert/g&lt;BR /&gt;&lt;BR /&gt;If you wanted to do this at the end&lt;BR /&gt;of the line replace the '^' with a&lt;BR /&gt;'$'&lt;BR /&gt;&lt;BR /&gt;If you wished to change multiple files&lt;BR /&gt;it might be best to use 'sed'&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2002 07:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755263#M945294</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-01T07:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755264#M945295</link>
      <description>Sha&lt;BR /&gt;&lt;BR /&gt;Search anad replace&lt;BR /&gt;&lt;BR /&gt;/text - search forward direction starting from curretn location&lt;BR /&gt;?text search text backward&lt;BR /&gt;/ repeat previous search in forward dir&lt;BR /&gt;? repeat previous searcn backward dir&lt;BR /&gt;n repeat search in same dir&lt;BR /&gt;N repeat search in opposite dir&lt;BR /&gt;:s/old/new search old and replace with new&lt;BR /&gt;:m,ns/old/new/g search old from line m and replace it to line n with new&lt;BR /&gt;:s/old/new/g search old in entire file and replace with new&lt;BR /&gt;/&lt;SPACE&gt;text a space between the / and text, only whole words are searched&lt;BR /&gt;/^text search text at the beginning of a line&lt;BR /&gt;/text$ text at the end of a line&lt;BR /&gt;/(more than one word) - use parenthesis to search for more than one word&lt;BR /&gt;&lt;BR /&gt;Exporting text from a current file&lt;BR /&gt;&lt;BR /&gt;If you have opened file1 in the editor and want to save lines 3 to 47 as file3, use the command :3,47w file3&lt;BR /&gt;&lt;BR /&gt;to save the opened file as a new file :w filename&lt;BR /&gt;&lt;BR /&gt;to open multiple files&lt;BR /&gt;&lt;BR /&gt;vi file1 file2 file3&lt;BR /&gt;&lt;BR /&gt;vi options are configured in $HOME/.exrc&lt;BR /&gt;&lt;BR /&gt;to set line number , enter in .exrc&lt;BR /&gt;&lt;BR /&gt;set nu&lt;BR /&gt;set showmode&lt;BR /&gt;&lt;BR /&gt;to show current mode&lt;BR /&gt;&lt;BR /&gt;Theres loads more&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/SPACE&gt;</description>
      <pubDate>Mon, 01 Jul 2002 07:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755264#M945295</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-07-01T07:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755265#M945296</link>
      <description>Here is a link to some information regarding 'sed'&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.math.fu-berlin.de/~guckes/sed/" target="_blank"&gt;http://www.math.fu-berlin.de/~guckes/sed/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To really learn some powerful text editing and programming you may also want to look at perl. &lt;BR /&gt;&lt;BR /&gt;Start here:&lt;BR /&gt;&lt;A href="http://www.perl.org/" target="_blank"&gt;http://www.perl.org/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cpan.org" target="_blank"&gt;http://www.cpan.org&lt;/A&gt;</description>
      <pubDate>Mon, 01 Jul 2002 07:44:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755265#M945296</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-01T07:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755266#M945297</link>
      <description>Shah&lt;BR /&gt;&lt;BR /&gt;I have attached a whole load of sed examples&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Mon, 01 Jul 2002 07:44:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755266#M945297</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-07-01T07:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755267#M945298</link>
      <description>Here they are</description>
      <pubDate>Mon, 01 Jul 2002 07:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755267#M945298</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-07-01T07:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755268#M945299</link>
      <description>typing &lt;BR /&gt;&lt;BR /&gt;:set list&lt;BR /&gt;&lt;BR /&gt;displays non-printable characters (hidden control characters etc).  Can be invaluable in debugging a faulty script or data.&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;use J to join append the next line to the end of the current line.&lt;BR /&gt;&lt;BR /&gt;-------------------------------------&lt;BR /&gt;Cut and paste file section to new file&lt;BR /&gt;&lt;BR /&gt;At first line, hit &lt;BR /&gt;m&lt;BUFFER&gt;&lt;BR /&gt;where the buffer is a letter &lt;BR /&gt;&lt;BR /&gt;Go to end of section you want to copy, and type&lt;BR /&gt;&lt;BR /&gt;"ay'&lt;BUFFER&gt;&lt;BR /&gt;&lt;BR /&gt;You should now see a message telling you that a number of lines have been yanked.&lt;BR /&gt;&lt;BR /&gt;type&lt;BR /&gt;&lt;BR /&gt;:e &lt;NEWFILE&gt;&lt;BR /&gt;to start a new file, then&lt;BR /&gt;&lt;BR /&gt;"ap&lt;BR /&gt;&lt;BR /&gt;to paste the contents of the buffer to the new file.&lt;BR /&gt;--------------------------------------&lt;/NEWFILE&gt;&lt;/BUFFER&gt;&lt;/BUFFER&gt;</description>
      <pubDate>Mon, 01 Jul 2002 08:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755268#M945299</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2002-07-01T08:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755269#M945300</link>
      <description>:set all&lt;BR /&gt;to view special settings&lt;BR /&gt;&lt;BR /&gt;ie&lt;BR /&gt;:set noautoindent&lt;BR /&gt;to avoid cut paste problems..&lt;BR /&gt;&lt;BR /&gt;Also get a shell with&lt;BR /&gt;&lt;BR /&gt;:!ksh&lt;BR /&gt;&lt;BR /&gt;exit&lt;BR /&gt;(to return to vi)&lt;BR /&gt;&lt;BR /&gt;:!ls /tmp&lt;BR /&gt;&lt;BR /&gt;or any other command to run a command.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2002 10:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755269#M945300</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-07-01T10:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755270#M945301</link>
      <description>See also the standard HP-UX documentation, i.e. for example "Using the vi Editor" in the "Using Your HP Workstation" (or similar) manual.&lt;BR /&gt;&lt;BR /&gt;For on-line versions, see &amp;lt;&amp;gt;.</description>
      <pubDate>Mon, 01 Jul 2002 13:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755270#M945301</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-01T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755271#M945302</link>
      <description>:.= show current line number&lt;BR /&gt;:= show how many lines in the file.&lt;BR /&gt;&lt;BR /&gt;HP has a book "The Ultimate guide to the VI and EX Text Editors" that will tell you everything you ever want to know about vi.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Mon, 01 Jul 2002 13:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755271#M945302</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-07-01T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755272#M945303</link>
      <description>I like to use:&lt;BR /&gt;&lt;BR /&gt;:r filename&lt;BR /&gt;&lt;BR /&gt;to insert the contents of the specified file into the current file you are editing.  I use this alot to add headers and standard env setups to my scripts.</description>
      <pubDate>Mon, 01 Jul 2002 13:05:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755272#M945303</guid>
      <dc:creator>Jeanine Kone</dc:creator>
      <dc:date>2002-07-01T13:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755273#M945304</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;VVVV IMP to open a large files&lt;BR /&gt;&lt;BR /&gt;[&lt;BR /&gt;vi&lt;BR /&gt;:set dir=/&lt;LARGEFILESYSTEM&gt;&lt;BR /&gt;:e &lt;LARGFILE&gt;&lt;BR /&gt;&lt;BR /&gt;]&lt;BR /&gt;&lt;BR /&gt;so that you have to set the largefilesystem with enough space of your largefile....so vi default searches for /var/tmp....if it doesnt have enought space of your largefile....&lt;BR /&gt;&lt;BR /&gt;it wont open it completely and if you save it accidentally....it will be a problem&lt;BR /&gt;&lt;BR /&gt;take care  &lt;BR /&gt;&lt;BR /&gt;&lt;/LARGFILE&gt;&lt;/LARGEFILESYSTEM&gt;</description>
      <pubDate>Mon, 01 Jul 2002 19:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755273#M945304</guid>
      <dc:creator>BKUMAR</dc:creator>
      <dc:date>2002-07-01T19:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755274#M945305</link>
      <description>Use the following to convert alpha chars from lower to upper case.&lt;BR /&gt;&lt;BR /&gt;sed '1,3y/abcde/ABCDE/' filename&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2002 20:21:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755274#M945305</guid>
      <dc:creator>Tony Romero</dc:creator>
      <dc:date>2002-07-01T20:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755275#M945306</link>
      <description>A very simple one that I seem to use every session is move to the 1st line in the file:&lt;BR /&gt;&lt;BR /&gt;/1G&lt;BR /&gt;&lt;BR /&gt;Last line in the file:&lt;BR /&gt;/G&lt;BR /&gt;&lt;BR /&gt;Search for a string or number etc..:&lt;BR /&gt;/keyword_that_you_want_to_search_for&lt;BR /&gt;n (to repeat the last find forward)&lt;BR /&gt;N  (to repeat the last find backward)&lt;BR /&gt;&lt;BR /&gt;Take me to the end of the line and put me in insert mode so I can add text:&lt;BR /&gt;A&lt;BR /&gt;&lt;BR /&gt;All of the responses were great but I find that these are the most used, plus search and replace already given to you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2002 20:44:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755275#M945306</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2002-07-01T20:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755276#M945307</link>
      <description>&lt;BR /&gt;&lt;A href="http://www.talug.org/minutes/19990310/lesson/lesson.html" target="_blank"&gt;http://www.talug.org/minutes/19990310/lesson/lesson.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://computips.virtualave.net/tips/vi_commands.html" target="_blank"&gt;http://computips.virtualave.net/tips/vi_commands.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.roxanne.org/vi.html" target="_blank"&gt;http://www.roxanne.org/vi.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How many of us have done this:&lt;BR /&gt;&lt;BR /&gt;ls -l /somedir &amp;gt; /tmp/dirlst.txt&lt;BR /&gt;then&lt;BR /&gt;vi /tmp/dirlst.txt&lt;BR /&gt;&lt;BR /&gt;when we could have done this&lt;BR /&gt;&lt;BR /&gt;vi /tmp/dirlst.txt&lt;BR /&gt;!!ls -l /somedir&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 02 Jul 2002 00:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755276#M945307</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-07-02T00:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755277#M945308</link>
      <description>1.if you want interchange the letter when you make mistake while typeing&lt;BR /&gt;Ans:  xp&lt;BR /&gt;&lt;BR /&gt;2. if you want opn a last line of file&lt;BR /&gt;&lt;BR /&gt;Ans: vi + /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2002 02:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755277#M945308</guid>
      <dc:creator>kish_1</dc:creator>
      <dc:date>2002-07-02T02:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755278#M945309</link>
      <description>with regards to search and replace&lt;BR /&gt;&lt;BR /&gt;:%s/old/new/gc &lt;BR /&gt;&lt;BR /&gt;Where the g is global and the c is confirm before commit.</description>
      <pubDate>Tue, 02 Jul 2002 02:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755278#M945309</guid>
      <dc:creator>Robert Sipe</dc:creator>
      <dc:date>2002-07-02T02:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755279#M945310</link>
      <description>if you need to include a calendar into your vi session&lt;BR /&gt;&lt;BR /&gt;:! /usr/bin/cal [arg]&lt;BR /&gt;&lt;BR /&gt;of course that will work with any shell command.</description>
      <pubDate>Tue, 02 Jul 2002 03:09:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755279#M945310</guid>
      <dc:creator>Robert Sipe</dc:creator>
      <dc:date>2002-07-02T03:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Some Tips &amp; Tricks for  "VI Editor"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755280#M945311</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I guess one could fill a whole book with cute little vi tricks.&lt;BR /&gt;Here are some things I appreceate with vi.&lt;BR /&gt;Maybe they have already been addressed?&lt;BR /&gt;&lt;BR /&gt;Shell escapes are a really nice feature (but sometimes dreaded by paranoid sysadmins ;-)&lt;BR /&gt;&lt;BR /&gt;You have already seen the bang of the ex commands&lt;BR /&gt;&lt;BR /&gt;:! ll /var/adm&lt;BR /&gt;&lt;BR /&gt;But what I think has been missed is the combination with ex's read command.&lt;BR /&gt;How about dumping the output of a command in your current vi buffer?&lt;BR /&gt;&lt;BR /&gt;:r! ll /var/adm&lt;BR /&gt;&lt;BR /&gt;This come really handy to me, when I am too lazy to type endless paths to commands that usually don't reside under /usr/bin&lt;BR /&gt;&lt;BR /&gt;:r! which perl&lt;BR /&gt;&lt;BR /&gt;Then you can escape to the shell without leaving your vi session when you have several commands to issue&lt;BR /&gt;&lt;BR /&gt;:sh&lt;BR /&gt;&lt;BR /&gt;After your commands type exit to get back to your vi session.&lt;BR /&gt;&lt;BR /&gt;Have you already discovered the power of mappings?&lt;BR /&gt;Edit your .exrc file, and insert a mapping like this:&lt;BR /&gt;(This is to insert a standard Perl header when pressing the F1 key)&lt;BR /&gt;&lt;BR /&gt;map ^[[001q :r!which perl^M^[I#!^[A -w^M^Muse strict;^M^M&lt;BR /&gt;&lt;BR /&gt;You get the control characters when you typ Ctrl+v (or C^V) together, which quotes the next key.&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2002 06:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-tips-amp-tricks-for-quot-vi-editor-quot/m-p/2755280#M945311</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-07-02T06:48:32Z</dc:date>
    </item>
  </channel>
</rss>

