Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 16: Line 16:
 
Add following to gvimrc:
 
Add following to gvimrc:
 
<pre>
 
<pre>
βˆ’
nmap <F1> :silent ! start iexplore "http://www.google.com/search?hl=en&btnI=I\%27m+Feeling+Lucky&q=site\%3Amsdn.microsoft.com\%20<cWORD>"<CR>
+
nmap &lt;F1&gt; :silent ! start iexplore "http://www.google.com/search?hl=en&amp;btnI=I\%27m+Feeling+Lucky&amp;q=site\%3Amsdn.microsoft.com\%20&lt;cWORD&gt;"&lt;CR&gt;
 
</pre>
 
</pre>
   
Line 26: Line 26:
 
*Navigates the browser directly to the first page returned from the search.
 
*Navigates the browser directly to the first page returned from the search.
   
βˆ’
For example, putting your cursor over WaitForSingleObject and hitting <F1> brings you directly to the documentation for that API on the MSDN site.
+
For example, putting your cursor over WaitForSingleObject and hitting &lt;F1&gt; brings you directly to the documentation for that API on the MSDN site.
   
 
Use <code>:set ch=2</code> to avoid the Hit Enter To Continue message.
 
Use <code>:set ch=2</code> to avoid the Hit Enter To Continue message.
Line 35: Line 35:
 
Is there any reason that you don't search msdn directly? Something like:
 
Is there any reason that you don't search msdn directly? Something like:
 
<pre>
 
<pre>
βˆ’
nmap <F3> :silent !cmd /C start iexplore "http://search.msdn.microsoft.com/search/default.aspx?query=<cWORD>"<CR>;
+
nmap &lt;F3&gt; :silent !cmd /C start iexplore "http://search.msdn.microsoft.com/search/default.aspx?query=&lt;cWORD&gt;"&lt;CR&gt;;
 
</pre>
 
</pre>
   
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)