CINXE.COM
tips : vim online
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="Stylesheet" type="text/css" href="/css/style.css" > <title>tips : vim online</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta name="KEYWORDS" content="Vim, Vi IMproved, text editor, home, documentation, tips, scripts, news"> <meta name="viewport" content="width=1000, initial-scale=1"> <link rel="shortcut icon" type="image/x-icon" href="/images/vim_shortcut.ico"> <link rel="alternate" type="application/rss+xml" title="tips (RSS 2.0)" href="http://www.vim.org/tips/rss2.php" /> </head> <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff"> <!-- HEADER, SPONSOR IMAGE, VIM IMAGE AND BOOK AD --> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="lightbg" width="208" style="background-color: #0057b7"><img src="/images/spacer.gif" width="100" height="5" alt=""></td> <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td> <td class="lightbg" width="208" style="background-color: #0057b7"><img src="/images/spacer.gif" width="100" height="5" alt=""></td> </tr> <tr> <td> <table width="208" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="lightbg" style="background-color: #0057b7"> <a href="https://eu-solidarity-ukraine.ec.europa.eu/eu-stands-ukraine_en"><img src="/images/spacer.gif" width="204" height="23" alt=""></a> </td> </tr> <tr> <td class="lightbg" style="background-color: #ffd700"> <a href="https://eu-solidarity-ukraine.ec.europa.eu/eu-stands-ukraine_en"><img src="/images/spacer.gif" width="204" height="23" alt=""></a> </td> </tr> </table> </td> <td class="lightbg"> </td> <td class="lightbg" align="left"><a href="https://www.vim.org/sponsor/index.php"><img src="/images/sponsorvim.gif" alt="sponsor Vim development" border="0"></a></td> <td class="lightbg" align="center"> <a href="/"><img src="/images/vim_header.gif" border="0" alt="Vim logo" class="align-middle"></a> </td> <td class="lightbg" align="right"><a href="http://iccf-holland.org/click5.html"><img src="/images/buyhelplearn.gif" alt="Vim Book Ad" border="0"></a></td> <td> <table width="208" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="lightbg" width="208" style="background-color: #0057b7"> <a href="https://eu-solidarity-ukraine.ec.europa.eu/eu-stands-ukraine_en"><img src="/images/spacer.gif" width="204" height="23" alt=""></a> </td> </tr> <tr> <td class="lightbg" width="208" style="background-color: #ffd700"> <a href="https://eu-solidarity-ukraine.ec.europa.eu/eu-stands-ukraine_en"><img src="/images/spacer.gif" width="204" height="23" alt=""></a> </td> </tr> </table> </td> </tr> <tr> <td class="lightbg" style="background-color: #ffd700"><img src="/images/spacer.gif" width="100" height="5" alt=""></td> <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td> <td class="lightbg" style="background-color: #ffd700"><img src="/images/spacer.gif" width="100" height="5" alt=""></td> </tr> </table> <!-- THE PAGE BODY: BETWEEN HEADER AND FOOTER --> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <col width="180"> <col width="1"> <tr valign="top"> <td class="sidebar"> <table width="180" cellpadding="4" cellspacing="0" border="0"> <tr valign="top"> <td class="sidebar"> <!-- INCLUDE THE PAGE NAVIGATION --> <table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red"> <tr> <td><small>not logged in (<a href="https://www.vim.org/login.php">login</a>)</small></td> </tr> <tr><td> <small> </small> <form action="https://www.google.com/cse" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-3005259998294962:bvyni59kjr1" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="20" /> <br> <input type="submit" name="sa" value="Search" /> </div> </form> <script type="text/javascript" src="https://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script> </td></tr> <tr> <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td> </tr> <tr> <td class="darkbg"><img src="/images/spacer.gif" alt='' border="0" height="3"></td> </tr> <tr> <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="2"></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/">Home</a></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/search.php">Advanced search</a></td> </tr> <tr> <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td> </tr> <tr> <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td> </tr> <tr> <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/about.php">About Vim</a></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/community.php">Community</a></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/news/news.php">News</a></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/sponsor/index.php">Sponsoring</a></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/trivia.php">Trivia</a></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/docs.php">Documentation</a></td> </tr> <tr> <td class="sidebarheader download"><a href="https://www.vim.org/download.php">Download</a></td> </tr> <tr> <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td> </tr> <tr> <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td> </tr> <tr> <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/scripts/index.php">Scripts</a></td> </tr> <tr> <td class="sidebarheader">Tips</td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/account/index.php">My Account</a></td> </tr> <tr> <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td> </tr> <tr> <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td> </tr> <tr> <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/hgweb/vim/">Mercurical Web</a></td> </tr> <tr> <td class="sidebarheader"><a href="https://www.vim.org/huh.php">Site Help</a></td> </tr> </table> <br> <!-- <g:plusone></g:plusone> --> <table width="172" cellpadding="0" cellspacing="0" border="0"> <tr><td><img src="/images/spacer.gif" alt="" border="0" width="1" height="8"></td></tr> <tr><td class="darkbg"><img src="/images/spacer.gif" width="1" height="3" alt=""></td></tr> </table> <br> <!-- INCLUDE THE PAGE SIDEBAR TEXT --> <span class="sidebarheader">What are tips?</span> <p> This is a place where users of the vim editor can add their favorite commands, macros and other assorted tips to a common database. While the vim distribution comes with a rich set of documentation it is often hard to find a place to start when trying to incrementally learn how to use the editor. </p> <br> <span class="sidebarheader">Why tips?</span> <p> When I realized how much I was learning from the vim list alone I thought it would be great to have a place that the community could maintain a list of their favorite vim gems. The overall goal is to have a place you can visit when you are in a vim learning mood or when you "discover" something particularly powerful and want to share it with other vim users. </td> </tr> </table> </td> <td class="darkbg"><img src="/images/spacer.gif" width="1" height="1" border="0" alt=""><br></td> <td> <table width="100%" cellpadding="10" cellspacing="0" border="0" bordercolor="red"> <tr> <td valign="top"> <span class="txth1">Vim Tips</span> <p> <i>"...Can you imagine how many keystrokes could have been saved, if I only had known the <a href="http://vim.wikia.com/wiki/VimTip1">"*" command</a> in time?"</i> - Juergen Salk, 1/19/2001 <br clear="all"> <p> <!-- placeholder for top rated tips --> </p> <hr noshade size="1" color="#000000"> <br> <span class="txth1">Tips copied to wiki</span> <p> Editing tips on the vim.org website was disabled because of an overload of spam. As a solution, and offering much more functionality, all the tips were copied to the Tips wiki. <p> This is the new place to edit and add tips: <b><a href="http://vim.wikia.com/wiki/Vim_Tips_Wiki">Vim Tips wiki</a></b> <p> <!-- finish off the framework --> </td> </tr> </table> </td> <td class="darkbg"><img src="/images/spacer.gif" width="1" height="1" border="0" alt=""><br></td> <td class="sidebar"> <table width="128" cellpadding="4" cellspacing="0" border="0"> <tr valign="top"> <td class="sidebar"> <script type="text/javascript"><!-- google_ad_client = "pub-3005259998294962"; /* 120x600, created 7/25/08 */ google_ad_slot = "7276811434"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> <tr valign="top"> <td class="sidebar" align='center' style="padding-top: 16px"> Help Uganda </td> </tr> <tr valign="top"> <td class="sidebar" align='center'> <br> <a href="https://iccf-holland.org/vim_books.html"><img src="/images/learning_vi_vim_8_small.png" alt="Buy a book, help Uganda, learn Vim"></a> <br> <a href="http://iccf-holland.org/click1.html">Buy at Amazon</a> </td> </tr> <!-- INCLUDE THE RIGHT SIDE SPONSOR LINKS if present --> </table> </td> </tr> </table> <!-- END OF THE PAGE BODY: BETWEEN HEADER AND FOOTER --> <table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red"> <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr> <tr><td colspan="4" bgcolor="#000000"><img src="/images/spacer.gif" height="2" width="1" alt=""></td></tr> <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr> <tr> <td><img src="/images/spacer.gif" width="5" height="1" alt=""></td> <td align="left" valign="top"><small> If you have questions or remarks about this site, visit the <a href="http://vimonline.sf.net">vimonline development</a> pages. Please use this site responsibly. <br> Questions about <a href="http://www.vim.org/about.php">Vim</a> should go to the <a href="http://www.vim.org/maillist.php">maillist</a>. Help Bram <a href="http://iccf-holland.org/">help Uganda</a>. </small> </td> <td align="right" valign="top"> <a href="https://github.com/vim/vim" rel="nofollow">Vim at Github</a> </td> <td><img src="/images/spacer.gif" width="5" height="1" alt=""></td> </tr> <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td> </tr> </table> </body> </html>