On 2/22/07, Tom Purl <[EMAIL PROTECTED]> wrote:
Swaroop, could you please convert a few tips using your script and them
post them on the wiki?  I would love to see the final output.

Looks like I can't add anything to the wiki until the admin adds me as
part of the project :)

Here's the output of the script for tip 1504 :

-------------------------------------------

Tip 1504
Authored by Tim Keating
Created on February 6, 2007 9:16
Complexity is basic
Version of Vim required is ''

<code>If you want to execute an external command on Windows, you need
to know one trick. Let's say you're building a command to check out
the file you're working on (using Perforce as an example):
<br /> <br />map &lt;f6&gt;:!p4 edit %
<br /> <br />However, that will just populate the command line. To
force the command to execute without having to hit Enter, you need to
embed a CR/LF. On Linux, you do this with CTRL+V CTRL+M. On Windows
(as of version 7; not sure how far back this goes), CTRL+V is mapped
to &quot;Paste from Windows Clipboard&quot;. You have to use CTRL+Q
instead:
<br /> <br />map &lt;f6&gt;:!p4 edit %CTRL+Q CTRL+M
<br /> <br />Which will look like:
<br /> <br />map &lt;f6&gt;:!p4 edit %^M</code>

-------------------------------------------


--
Swaroop

Reply via email to