CINXE.COM
for Vim 5 users : 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>for Vim 5 users : 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"> </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/6kbyte.php">in 6 Kbyte</a> </td> </tr> <tr> <td class="sidebarheader"> <a href="https://www.vim.org/viusers.php">for Vi users</a> </td> </tr> <tr> <td class="sidebarheader"> for Vim 5 users </td> </tr> <tr> <td class="sidebarheader"> <a href="https://www.vim.org/others.php">for others</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"><a href="https://www.vim.org/tips/index.php">Tips</a></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 --> </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"> <h1>if you're using Vim 5</h1> <p> A huge number of new features have been added in Vim 6. A few major ones will be mentioned here. There are also a lot of minor improvements, details matter to the Vim developers. </p> <p> The full list of new features can be found in the <a href='http://vimdoc.sourceforge.net/cgi-bin/vim2html2.pl?page=version6.txt#version6.txt'>official documentation</a>. </p> <ul> <li> Vertically Split Windows <p> Windows can now be split vertically. This provides great flexibility for displaying files in Vim. The example below shows the file explorer in the left window and an edited file in the right window. Double clicking on a file name in the file explorer edits that file in the right window. Double clicking on a directory name moves to that directory. You can have many splits at once, and edit files in each of them. </p> <img src="/images/vertsplit.png" width="602" height="355" alt="vertically split windows" /> <p> </li> <li> Vimdiff <p> Edit two (or three or four) files and Vim will show the differences. Inserted and changed lines are highlighted. Ranges of lines without changes are folded away. This way you can quickly see what changed. There are commands to remove the differences. </p> <img src="/images/vimdiff.png" width="602" height="430" alt="vimdiff" /> <p> </li> <li> Folding <p> A range of lines can be hidden, and one line displayed instead. This gives a quick overview of what a file contains. In the example below there is a fold for each C function. Most of them are closed and only show the name of the function. A fold can be opened by clicking on the + in the column on the left. </p> <p> There are several ways of folding: with markers in the file, based on indenting, manually or defined with an expression. This provides convenient folding for many different purposes. </p> <img src="/images/folding.png" width="586" height="311" alt="folding" /> <p> </li> <li> User Manual <p> With so many new features the documentation had to be enhanced to make it easier to learn using Vim. The user manual was written in such a way that you can start using Vim or learn to use a specific feature. There are lots of examples to make it easier to read and understand. Parts of the book <a href="http://iccf-holland.org/vim_books.html">Vi Improved - Vim</A> by Steve Oualline were used. The user manual, like the book, is published under the Open Publication License. <p> <p> You can find the <a href='http://vimdoc.sourceforge.net/cgi-bin/vim2html2.pl?page=usr_toc.txt#usr_toc.txt'>User Manual</a>, along with other documentation, at <a href='http://vimdoc.sf.net/'>VimDoc</a>. </p> </li> <li> Plugins <p> Since Vim scripting has become quite powerful, many users have started writing scripts. The new plugin feature makes it easy to start using such a script: Just drop it in the right directory. </p> <p> There are several types of plugins. Global plugins are used to add commands for all situations. The file explorer, mentioned in the example for vertical splits above, is actually implemented as a global plugin. </p> <p> Filetype plugins are used to do settings for a specific type of file. For example, the C filetype plugin sets the 'cindent' option; the "man" plugin sets up mappings to be able to jump to another manual page. </p> <p> A number of plugins are included in the distribution. The system administrator can add plugins for all users. And you can add your own personal plugins. The <a href="scripts.php">script repository</a> provides a central place to share plugins. </p> </li> <li> Flexible Indenting <p> Automatic indenting is now available for many languages. Several are included with the distribution. Just like with syntax highlighting, the indenting is defined in a Vim script. This allows you to add indenting for the language you are editing. You are invited to make your scripts available to be included in the Vim distribution. </p> </li> <li> Unicode <p> There are many languages in the world, and many ways to encode the characters used in them. Unicode was designed to encode characters for all the languages commonly used in the world. This allows using several languages in the same file. </p> <p> Vim supports editing Unicode in the GUI version and in terminals that support UTF-8. Double-wide characters can be used, and up to two composing characters are supported. </p> <p> When reading a file, Vim can often detect how it is encoded and convert the text when necessary. UTF-8 files are edited without conversion. Other Unicode formats (16 bit and 32 bit) are converted internally. Conversion is also used to edit files in just about any encoding, using an external converter. </p> <img src="/images/unicode.png" width="602" height="362" alt="Editing Unicode" /> </li> </ul> <!-- 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/clickkindle.html"><img src="/images/kindle_125x125.gif" 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>