r995 - in /trunk/packages/vim-scripts: debian/ debian/vim-registry/ doc/ html/ plugin/

zack at users.alioth.debian.org zack at users.alioth.debian.org
Tue Jul 24 07:47:16 UTC 2007


Author: zack
Date: Tue Jul 24 07:47:16 2007
New Revision: 995

URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=995
Log:
  - upgraded: bufexplorer, which now use ":drop" only if a gui is available
    (Closes: #433800)
  - upgraded: nerd-commenter (and renamed the addon, since upstream changed
    the .vim filename to NERD_commenter.vim). Added a debian/NEWS entry
    about some changes in this new upstream version

Added:
    trunk/packages/vim-scripts/html/plugin_NERD_commenter.vim.html
    trunk/packages/vim-scripts/plugin/NERD_commenter.vim
Removed:
    trunk/packages/vim-scripts/html/plugin_NERD_comments.vim.html
    trunk/packages/vim-scripts/plugin/NERD_comments.vim
Modified:
    trunk/packages/vim-scripts/debian/NEWS
    trunk/packages/vim-scripts/debian/changelog
    trunk/packages/vim-scripts/debian/copyright
    trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml
    trunk/packages/vim-scripts/debian/vim-scripts.status
    trunk/packages/vim-scripts/doc/bufexplorer.txt
    trunk/packages/vim-scripts/html/autoload_omni_cpp_complete.vim.html
    trunk/packages/vim-scripts/html/ftplugin_git.vim.html
    trunk/packages/vim-scripts/html/ftplugin_po.vim.html
    trunk/packages/vim-scripts/html/ftplugin_xml.vim.html
    trunk/packages/vim-scripts/html/index.html
    trunk/packages/vim-scripts/html/macros_closetag.vim.html
    trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html
    trunk/packages/vim-scripts/html/plugin_DoxygenToolkit.vim.html
    trunk/packages/vim-scripts/html/plugin_EnhancedCommentify.vim.html
    trunk/packages/vim-scripts/html/plugin_a.vim.html
    trunk/packages/vim-scripts/html/plugin_bufexplorer.vim.html
    trunk/packages/vim-scripts/html/plugin_calendar.vim.html
    trunk/packages/vim-scripts/html/plugin_cvsmenu.vim.html
    trunk/packages/vim-scripts/html/plugin_gnupg.vim.html
    trunk/packages/vim-scripts/html/plugin_info.vim.html
    trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html
    trunk/packages/vim-scripts/html/plugin_minibufexpl.vim.html
    trunk/packages/vim-scripts/html/plugin_project.vim.html
    trunk/packages/vim-scripts/html/plugin_sokoban.vim.html
    trunk/packages/vim-scripts/html/plugin_supertab.vim.html
    trunk/packages/vim-scripts/html/plugin_taglist.vim.html
    trunk/packages/vim-scripts/html/plugin_tetris.vim.html
    trunk/packages/vim-scripts/html/plugin_themes.vim.html
    trunk/packages/vim-scripts/html/plugin_utl.vim.html
    trunk/packages/vim-scripts/html/plugin_vcscommand.vim.html
    trunk/packages/vim-scripts/html/plugin_whatdomain.vim.html
    trunk/packages/vim-scripts/html/plugin_winmanager.vim.html
    trunk/packages/vim-scripts/plugin/bufexplorer.vim

Modified: trunk/packages/vim-scripts/debian/NEWS
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/NEWS?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/NEWS (original)
+++ trunk/packages/vim-scripts/debian/NEWS Tue Jul 24 07:47:16 2007
@@ -1,3 +1,20 @@
+vim-scripts (7.1.3) unstable; urgency=low
+
+  * NERD Commenter rename and mapleader changes.
+
+    NERD Commenter upstream has renamed the .vim filename from
+    NERD_comments.vim to NERD_commenter.vim, you need to re-enable the script
+    in your system: "vim-addons install nerd-commenter" should to the trick if
+    you already changed to the new way of managing vim addons (see the
+    vim-addon-manager package for more info).
+
+    In addition to that, the leader key for all NERD Commenter mapping has
+    been changed upstream from '\' to ',', to avoid key clashes with the
+    popular vcscommand plugin. See ":help NERDMapleader" if you want to have
+    back the old behaviour.
+
+ -- Stefano Zacchiroli <zack at debian.org>  Tue, 24 Jul 2007 09:39:39 +0200
+
 vim-scripts (7-1) unstable; urgency=low
 
   * The plugins CVSCommand.vim and SVNCommand.vim has been merged into a

Modified: trunk/packages/vim-scripts/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/changelog?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/changelog (original)
+++ trunk/packages/vim-scripts/debian/changelog Tue Jul 24 07:47:16 2007
@@ -1,9 +1,14 @@
-vim-scripts (7.1.3) UNRELEASED; urgency=low
+vim-scripts (7.1.3) unstable; urgency=low
 
   * addons adds/removals/upgrades
     - upgraded: supertab (the version we used to ship was superseded by a new
       plugin, also register it as an addon which was missing)
       (Closes: #431148)
+    - upgraded: bufexplorer, which now use ":drop" only if a gui is available
+      (Closes: #433800)
+    - upgraded: nerd-commenter (and renamed the addon, since upstream changed
+      the .vim filename to NERD_commenter.vim). Added a debian/NEWS entry
+      about some changes in this new upstream version
     - added: lbdbq (Closes: #430685) ... which now quotes expanded names to
       avoid dangerous characters like commas (Closes: #431820)
   * debian/patches/
@@ -11,7 +16,7 @@
     - add git-defaults, provides a default for g:git_diff_spawn_mode to avoid
       git ftplugin complain, patch from Martin Krafft (Closes: #430105)
 
- -- Stefano Zacchiroli <zack at debian.org>  Sun, 22 Jul 2007 19:08:01 +0200
+ -- Stefano Zacchiroli <zack at debian.org>  Tue, 24 Jul 2007 09:45:10 +0200
 
 vim-scripts (7.1.2) unstable; urgency=low
 

Modified: trunk/packages/vim-scripts/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/copyright?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/copyright (original)
+++ trunk/packages/vim-scripts/debian/copyright Tue Jul 24 07:47:16 2007
@@ -112,7 +112,7 @@
 url:	 http://vim.sourceforge.net/scripts/script.php?script_id=13
 license: no license
 
-script:  plugin/NERD_comments.vim
+script:  plugin/NERD_commenter.vim
 author:  Marty Grenfell < mrg39 at student.canterbury.ac.nz >
 url:	 http://www.vim.org/scripts/script.php?script_id=1218
 license: no license

Modified: trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml (original)
+++ trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml Tue Jul 24 07:47:16 2007
@@ -307,7 +307,7 @@
 basedir: /usr/share/vim-scripts/
 disabledby: "let loaded_nerd_comments = 1"
 files:
-  - plugin/NERD_comments.vim
+  - plugin/NERD_commenter.vim
 ---
 addon: project
 description: "organize and navigate file projects (like IDE/buffer explorer)"

Modified: trunk/packages/vim-scripts/debian/vim-scripts.status
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/vim-scripts.status?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/vim-scripts.status (original)
+++ trunk/packages/vim-scripts/debian/vim-scripts.status Tue Jul 24 07:47:16 2007
@@ -47,7 +47,7 @@
 license:     license [2], see below
 extras:	     doc/bufexplorer.txt
 disabledby:  let loaded_bufexplorer = 1
-version:     7.0.15
+version:     7.0.17
 
 script_name: plugin/minibufexpl.vim
 addon:       minibufexplorer
@@ -243,7 +243,7 @@
 disabledby:  let loaded_closetag = 1
 version:     0.9.1
 
-script_name: plugin/NERD_comments.vim
+script_name: plugin/NERD_commenter.vim
 addon:       nerd-commenter
 description: easy commenting of code for many filetypes
 script_url:  http://www.vim.org/scripts/script.php?script_id=1218
@@ -252,7 +252,7 @@
 email:       mrg39 at student.canterbury.ac.nz
 license:     no license
 disabledby:  let loaded_nerd_comments = 1
-version:     2.0.5
+version:     2.0.7
 
 script_name: plugin/project.vim
 addon:       project

Modified: trunk/packages/vim-scripts/doc/bufexplorer.txt
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/doc/bufexplorer.txt?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/doc/bufexplorer.txt (original)
+++ trunk/packages/vim-scripts/doc/bufexplorer.txt Tue Jul 24 07:47:16 2007
@@ -1,7 +1,7 @@
-*bufexplorer.txt*              Buffer Explorer       Last Change: 27 Apr 2007
+*bufexplorer.txt*              Buffer Explorer       Last Change: 23 Jun 2007
 
 Buffer Explorer                                *buffer-explorer* *bufexplorer*
-                                Version 7.0.15
+                                Version 7.0.17
 
 Plugin for easily exploring (or browsing) open buffers
 
@@ -158,9 +158,9 @@
 ===============================================================================
 CHANGE LOG                                              *bufexplorer-changelog*
 
-7.0.15 - Thanks to Mark Smithfield for suggesting bufexplorer needed to handle
-         the ':args' command.
-         Fixed issue reported by Liu Jiaping on non Windows systems, which was
+7.0.17 - Fixed issue with 'drop' command.
+         Various enhancements and improvements.
+7.0.16 - Fixed issue reported by Liu Jiaping on non Windows systems, which was
          ...
          Open file1, open file2, modify file1, open bufexplorer, you get the
          following error:
@@ -175,6 +175,9 @@
          type ':w', I get another error message:
          E382: Cannot write, 'buftype' option is set 
          --------8<--------
+
+7.0.15 - Thanks to Mark Smithfield for suggesting bufexplorer needed to handle
+         the ':args' command.
 7.0.14 - Thanks to Randall Hansen for removing the requirement of terminal
          versions to be recompiled with 'gui' support so the 'drop' command
          would work. The 'drop' command is really not needed in terminal
@@ -364,6 +367,26 @@
 - Erwin Waterlander suggestion of being able to open the explorer with one
   buffer.
 
+- Fix issue reported by Liu Jiaping on non Windows systems, in which doing
+
+  Open file1, open file2, modify file1, open bufexplorer, you get the
+  following error:
+
+  --------8<--------
+  Error detected while processing function
+  <SNR>14_StartBufExplorer..<SNR>14_SplitOpen:
+  line    4:
+  E37: No write since last change (add ! to override)
+  --------8<--------
+
+  But the worse thing is, when I want to save the current buffer and
+  type ':w', I get another error message:
+
+  --------8<--------
+  E382: Cannot write, 'buftype' option is set 
+  --------8<--------
+
+  It has to do with the use of the 'drop' command.
 ===============================================================================
 CREDITS                                                   *bufexplorer-credits*
 

Modified: trunk/packages/vim-scripts/html/autoload_omni_cpp_complete.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/autoload_omni_cpp_complete.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/autoload_omni_cpp_complete.vim.html (original)
+++ trunk/packages/vim-scripts/html/autoload_omni_cpp_complete.vim.html Tue Jul 24 07:47:16 2007
@@ -153,8 +153,8 @@
 <tr>
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
-    Rating <b>709/199</b>,
-    Downloaded by 5008  </td>
+    Rating <b>708/200</b>,
+    Downloaded by 5029  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/ftplugin_git.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/ftplugin_git.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/ftplugin_git.vim.html (original)
+++ trunk/packages/vim-scripts/html/ftplugin_git.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>5/2</b>,
-    Downloaded by 45  </td>
+    Downloaded by 47  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/ftplugin_po.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/ftplugin_po.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/ftplugin_po.vim.html (original)
+++ trunk/packages/vim-scripts/html/ftplugin_po.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>162/53</b>,
-    Downloaded by 1405  </td>
+    Downloaded by 1406  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/ftplugin_xml.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/ftplugin_xml.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/ftplugin_xml.vim.html (original)
+++ trunk/packages/vim-scripts/html/ftplugin_xml.vim.html Tue Jul 24 07:47:16 2007
@@ -153,8 +153,8 @@
 <tr>
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
-    Rating <b>842/315</b>,
-    Downloaded by 15309  </td>
+    Rating <b>843/316</b>,
+    Downloaded by 15326  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/index.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/index.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/index.html (original)
+++ trunk/packages/vim-scripts/html/index.html Tue Jul 24 07:47:16 2007
@@ -21,6 +21,7 @@
    <li><a href="plugin_AlignPlugin.vim.html">plugin/AlignPlugin.vim.html</a></li>
    <li><a href="plugin_DoxygenToolkit.vim.html">plugin/DoxygenToolkit.vim.html</a></li>
    <li><a href="plugin_EnhancedCommentify.vim.html">plugin/EnhancedCommentify.vim.html</a></li>
+   <li><a href="plugin_NERD_commenter.vim.html">plugin/NERD_commenter.vim.html</a></li>
    <li><a href="plugin_NERD_comments.vim.html">plugin/NERD_comments.vim.html</a></li>
    <li><a href="plugin_a.vim.html">plugin/a.vim.html</a></li>
    <li><a href="plugin_bufexplorer.vim.html">plugin/bufexplorer.vim.html</a></li>
@@ -44,7 +45,7 @@
    <li><a href="syntax_CVSAnnotate.vim.html">syntax/CVSAnnotate.vim.html</a></li>
   </ul>
   <p>
-  Page generated on Sun, 22 Jul 2007 18:57:31 +0200
+  Page generated on Tue, 24 Jul 2007 09:44:39 +0200
 .
   </p>
  </body>

Modified: trunk/packages/vim-scripts/html/macros_closetag.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/macros_closetag.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/macros_closetag.vim.html (original)
+++ trunk/packages/vim-scripts/html/macros_closetag.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>576/212</b>,
-    Downloaded by 8068  </td>
+    Downloaded by 8083  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_AlignPlugin.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>822/254</b>,
-    Downloaded by 8365  </td>
+    Downloaded by 8380  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_DoxygenToolkit.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_DoxygenToolkit.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_DoxygenToolkit.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_DoxygenToolkit.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>148/54</b>,
-    Downloaded by 2800  </td>
+    Downloaded by 2802  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_EnhancedCommentify.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_EnhancedCommentify.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_EnhancedCommentify.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_EnhancedCommentify.vim.html Tue Jul 24 07:47:16 2007
@@ -153,8 +153,8 @@
 <tr>
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
-    Rating <b>896/287</b>,
-    Downloaded by 11957  </td>
+    Rating <b>900/288</b>,
+    Downloaded by 11972  </td>
 </tr>
 </table>
 <p>

Added: trunk/packages/vim-scripts/html/plugin_NERD_commenter.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_NERD_commenter.vim.html?rev=995&op=file
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_NERD_commenter.vim.html (added)
+++ trunk/packages/vim-scripts/html/plugin_NERD_commenter.vim.html Tue Jul 24 07:47:16 2007
@@ -1,0 +1,906 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head>
+  <link rel="Stylesheet" type="text/css" href="/css/style.css" >
+  <title>The NERD Commenter - A plugin that allows for easy commenting of code for many filetypes. : 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">
+  <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" bordercolor="red">
+  <tr>
+    <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+  </tr>
+  <tr>
+  <td class="lightbg">&nbsp;&nbsp;&nbsp;</td>
+  <td class="lightbg" align="left"><a href="/sponsor/index.php"><img src="/images/sponsorvim.gif" alt="sponsor Vim development" border="0"></a></td>
+    <td class="lightbg" align="center"><a href="/index.php"><img src="/images/vim_header.gif" border="0" alt="Vim logo"></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>
+  </tr>
+  <tr>
+    <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+  </tr>
+  <tr>
+    <td colspan="4" class="darkbg"><img src="/images/spacer.gif" width="1" height="10" 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="/login.php">login</a>)</small></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="/index.php">Home</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/search.php">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="/about.php">About Vim</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/community.php">Community</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/news/news.php">News</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/sponsor/index.php">Sponsoring</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/trivia.php">Trivia</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/docs.php">Documentation</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/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="/scripts/index.php">Scripts</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/tips/index.php">Tips</a></td>
+        </tr>
+        <tr>
+            <td class="sidebarheader"><a href="/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="/huh.php">Site Help</a></td>
+        </tr>
+</table>
+
+            <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 -->
+&nbsp;
+
+          </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">The NERD Commenter : A plugin that allows for easy commenting of code for many filetypes.</span> 
+
+<br>
+<br>
+
+<!-- karma table -->
+<table cellpadding="4" cellspacing="0" border="1" bordercolor="#000066">
+<tr>
+  <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
+  <td>
+    Rating <b>495/172</b>,
+    Downloaded by 7006  </td>
+</tr>
+</table>
+<p>
+
+<table cellspacing="0" cellpadding="0" border="0">
+<tr><td class="prompt">created by</td></tr>
+<tr><td><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></td></tr>
+<tr><td>&nbsp;</td></tr>
+<tr><td class="prompt">script type</td></tr>
+<tr><td>utility</td></tr>
+<tr><td>&nbsp;</td></tr>
+<tr><td class="prompt">description</td></tr>
+<tr><td>The following key mappings are provided by default (there is also a menu
<br>provided that contains menu items corresponding to all the below mappings):
<br>
<br>Most of the following mappings are for normal/visual mode only. The
<br>|NERDComInsertComment| mapping is for insert mode only.
<br>
<br>,cc |NERDComComment| 
<br>Comments out the current line or text selected in visual mode.
<br>
<br>,cn |NERDComNestedComment| 
<br>Same as |NERDComComment| but forces nesting.
<br>
<br>,c&lt;space&gt; |NERDComToggleComment| 
<br>Toggles the comment state of the selected line(s). If the topmost selected
<br>line is commented, all selected lines are uncommented and vice versa.
<br>
<br>,cm |NERDComMinimalComment| 
<br>Comments the given lines using only one set of multipart delimiters if
<br>possible. 
<br>
<br>,ci |NERDComInvertComment| 
<br>Toggles the comment state of the selected line(s) individually. Each selected
<br>line that is commented is uncommented and vice versa.
<br>
<br>,cs |NERDComSexyComment| 
<br>Comments out the selected lines ``sexually''
<br>
<br>,cy |NERDComYankComment|
<br>Same as |NERDComComment| except that the commented line(s) are yanked
<br>before commenting.
<br>
<br>,c$ |NERDComEOLComment| 
<br>Comments the current line from the cursor to the end of line.
<br>
<br>,cA |NERDComAppendComment| 
<br>Adds comment delimiters to the end of line and goes into insert mode between
<br>them.
<br>
<br>,cI |NERDComPrependComment| 
<br>Adds comment delimiters to the start of line and goes into insert mode between
<br>them.
<br>
<br>&lt;C-c&gt; |NERDComInsertComment| 
<br>Adds comment delimiters at the current cursor position and inserts between.
<br>
<br>,ca |NERDComAltDelim| 
<br>Switches to the alternative set of delimiters.
<br>
<br>,cl OR ,cr OR ,cb |NERDComAlignedComment| 
<br>Same as |NERDComComment| except that the delimiters are aligned down the
<br>left side (,cl), the right side (,cr) or both sides
<br>(,cb).
<br>
<br>,cu |NERDComUncommentLine| 
<br>Uncomments the selected line(s).
<br>
<br>Filetypes that can be commented by this plugin:
<br>abaqus abc acedb ada ahdl amiga aml ampl ant apache apachestyle asm68k asm asn
<br>aspvbs atlas autohotkey autoit automake ave awk basic b bc bdf bib bindzone bst
<br>btm caos catalog c cfg cg ch changelog cl clean clipper cmake conf config
<br>context cpp crontab cs csc csp css cterm cupl csv cvs dcl debchangelog
<br>debcontrol debsources def diff django docbk dns dosbatch dosini dot dracula dsl
<br>dtd dtml dylan ecd eiffel elf elmfilt erlang eruby eterm expect exports
<br>fetchmail fgl focexec form fortran foxpro fstab fvwm fx gdb gdmo geek
<br>gentoo-package-keywords' gentoo-package-mask' gentoo-package-use' gnuplot gtkrc
<br>haskell hb h help hercules hog html htmldjango htmlos ia64 icon idlang idl
<br>indent inform inittab ishd iss ist jam java javascript jess jgraph jproperties
<br>jproperties jsp kconfig kix kscript lace lex lftp lifelines lilo lisp lite
<br>lotos lout lprolog lscript lss lua lynx m4 mail make maple masm master matlab
<br>mel mf mib mma model moduala.&nbsp;&nbsp;modula2 modula3 monk mush muttrc named nasm
<br>nastran natural ncf netdict netrw nqc nroff nsis ocaml occam omlet omnimark
<br>openroad opl ora otl ox pascal passwd pcap pccts perl pfmain php phtml pic pike
<br>pilrc pine plaintex plm plsql po postscr pov povini ppd ppwiz procmail progress
<br>prolog psf ptcap python python qf radiance ratpoison r rc readline rebol
<br>registry remind rexx robots rpl rtf ruby sa samba sas sather scheme scilab
<br>screen scsh sdl sed selectbuf sgml sgmldecl sgmllnx sicad simula sinda skill
<br>slang sl slrnrc sm smarty smil smith sml snnsnet snnspat snnsres snobol4 spec
<br>specman spice sql sqlforms sqlj sqr squid st stp strace svn systemverilog tads
<br>taglist tags tak tasm tcl terminfo tex text plaintex texinfo texmf tf tidy tli
<br>trasys tsalt tsscl tssgm uc uil vb verilog verilog_systemverilog vgrindefs vhdl
<br>vim viminfo virata vo_base vrml vsejcl webmacro wget winbatch wml [^w]*sh
<br>wvdial xdefaults xf86conf xhtml xkb xmath xml xmodmap xpm2 xpm xslt yacc yaml
<br>z8a 
<br></td></tr>
+<tr><td>&nbsp;</td></tr>
+<tr><td class="prompt">install details</td></tr>
+<tr><td>***NOTE***: In version 2.0.0 the script file and help file were renamed to NERD_commenter.vim and NERD_commenter.txt. 
<br>If you are upgrading from version &lt; 2.0.0 to version &gt;= 2.0.0 then you must delete the old files NERD_comments.vim and
<br>NERD_comments.txt.
<br>
<br>Stick it in the plugin directory. The help doc should be installed when you next run vim. If it isnt then you can find it at the bottom of the script.</td></tr>
+<tr><td>&nbsp;</td></tr>
+</table>
+
+<!-- rating table -->
+<form name="rating">
+<input type="hidden" name="script_id" value="1218">
+<table cellpadding="4" cellspacing="0" border="1" bordercolor="#000066">
+<tr>
+  <td class="lightbg"><b>rate this script</b></td>
+  <td valign="middle">
+    <input type="radio" name="rating" value="life_changing">Life Changing
+    <input type="radio" name="rating" value="helpful">Helpful
+    <input type="radio" name="rating" value="unfulfilling">Unfulfilling&nbsp;
+    <input type="submit" value="rate">
+  </td>
+</tr>
+</table>
+</form>
+<span class="txth2">script versions</span> (<a href="add_script_version.php?script_id=1218">upload new version</a>)
+<p>
+Click on the package to download.
+<p>
+
+<table cellspacing="2" cellpadding="4" border="0" width="100%">
+<tr class='tableheader'>
+        <th valign="top">package</th>
+    <th valign="top">script version</th>
+    <th valign="top">date</th>
+    <th valign="top">Vim version</th>
+    <th valign="top">user</th>
+    <th valign="top">release notes</th>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7391">NERD_commenter.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>2.0.7</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-07-22</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Added support for eclass and ebuild filetypes. Thanks to Alex Tarkovsky
<br>for the email.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=7309">NERD_commenter.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>2.0.6</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-06-29</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">- Changed the default setting of NERDMapleader to &quot;,c&quot;, meaning all the maps now start with ,c instead of \c. This is to stop a major mapping clash with the vcscommand plugin. Anyone wanting to keep the \c map leader should read :help NERDMapleader.
<br>- Added support for debcontrol and dummy support for debchangelog filetypes, thanks to Stefano Zacchiroli for the email.
<br>- Made it so that the NERDShutUp option now only controls the &quot;Pleeease email the delimiters...&quot; requests. It no longer affects the general output of the script.
<br>- Simplified the names of the help tags. 
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7253">NERD_commenter.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>2.0.5</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-06-16</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">- Added support for autoit, autohotkey and docbk filetypes (thanks to&nbsp;&nbsp;Michael Böhler)
<br>- Added support for cmake (thanks to Aaron Small)
<br>- Added support for htmldjango and django filetypes (thanks to Ramiro&nbsp;&nbsp;Morales)
<br>- Improved the delimiters for eruby again
<br>- Applied a patch from Seth Mason to fix some pathing issues with the help&nbsp;&nbsp;file installation.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=7097">NERD_commenter.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>2.0.4</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-05-11</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">- Added support for verilog_systemverilog and systemverilog filetypes
<br>&nbsp;&nbsp;(Thanks to Alexey for the email)
<br>- Added support for fstab, thanks to Lizendir for the email.
<br>- Added support for the smarty filetype.
<br>- Improved the delimiters for eruby.
<br>- Added dummy support for changelog filetype.
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7060">NERD_commenter.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>2.0.3</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-05-03</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">- Added dummy support for the csv filetype (thx to Mark Woodward for the
<br>&nbsp;&nbsp;email)
<br>- Added dummy support for vo_base and otl filetypes (thanks to fREW for
<br>&nbsp;&nbsp;the email)
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6977">NERD_commenter.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>2.0.2</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-04-13</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Minor bug fix that was stopping nested comments from working</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=6972">NERD_commenter.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>2.0.1</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-04-12</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">- Fixed the visual bell for the |NERDComToEOLMap| map.
<br>- Added another possible value to the NERDMenuMode option which causes the
<br>&nbsp;&nbsp;menu to be displayed under 'Plugin -&gt; Comment'. See :h NERDMenuMode.
<br>&nbsp;&nbsp;This new menu mode is now the default.
<br>- Added support for the occam filetype (thanks to Anders for emailing me)
<br>- Made the main commenting function (NERDComment) available outside the
<br>&nbsp;&nbsp;script. See :h NERD_com_NERDComment
<br>- bug fixes and refactoring
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6938">NERD_commenter.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>2.0.0</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-04-02</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">- NOTE: renamed the script to&nbsp;&nbsp;NERD_commenter.vim. When you install this
<br>&nbsp;&nbsp;version you must delete the old files: NERD_comments.vim and 
<br>&nbsp;&nbsp;NERD_comments.txt.
<br>- Reworked the mappings and main entry point function for the script to
<br>&nbsp;&nbsp;avoid causing visual-bells and screen scrolling.
<br>- Changes to the script options (see |NERD_com-Customisation| for
<br>&nbsp;&nbsp;details):
<br>&nbsp;&nbsp;&nbsp;&nbsp;- They are all camel case now instead of underscored.
<br>&nbsp;&nbsp;&nbsp;&nbsp;- Converted all of the regular expression options into simple boolean
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;options for simplicity.
<br>&nbsp;&nbsp;&nbsp;&nbsp;- All the options are now stated positively, eg.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NERD_dont_remove_spaces_regexp has become NERDRemoveExtraSpaces.
<br>&nbsp;&nbsp;&nbsp;&nbsp;- Some of the option names have been changed (other than in the above
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ways)
<br>&nbsp;&nbsp;&nbsp;&nbsp;- Some have been removed altogether, namely: NERD_create_h_filetype
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(why was a commenting script creating a filetype?!),
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NERD_left_align_regexp, NERD_right_align_regexp, 
<br>
<br>- Removed all the NERD_use_alt_style_XXX_coms options and replaced them
<br>&nbsp;&nbsp;with a better system. Now if a filetype has alternative delims, the
<br>&nbsp;&nbsp;script will check whether an option of the form
<br>&nbsp;&nbsp;&quot;NERD_&lt;&filetype&gt;_alt_style&quot; exists, and if it does then alt delims will
<br>&nbsp;&nbsp;be used. See |NERD_com-cust-delims| for details.
<br>- The script no longer removes extra spaces for sexy comments for the
<br>&nbsp;&nbsp;NERDRemoveExtraSpaces option (it will still remove spaces if
<br>&nbsp;&nbsp;NERDSpaceDelims is set).
<br>- Added dummy support for viminfo and rtf.
<br>- Added support for the &quot;gentoo-package-\(keywords\|mask\|use\)&quot;
<br>&nbsp;&nbsp;filetypes.
<br>- Added '#' comments as an alternative for the asm filetype
<br>
<br>Thanks to Markus Klinik and Anders for bug reports, and again to Anders
<br>for his patch. Thanks to John O'Shea and fREW for the filetype
<br>information.
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=6659">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.69.2</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-01-25</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Added dummy support for the qf (quickfix filetype). This stops the script from spitting out the &quot;unknown filetype&quot; message when you go :copen.
<br>
<br>Thanks to Ilia N Ternovich for emailing me about this.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6624">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.69.1</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-01-18</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">*fixed the mark clobbering that was occuring.
<br>
<br>*added support for the following filetypes: netdict, bib, bst, passwd, omlet and kconfig. Thanks to Michael Brunner, Antono Vasiljev, Melissa Reid and Tim Carey-Smith for telling me about these filetypes (hope i didnt miss anyone)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=6152">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.69</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2006-09-08</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">fixed a bug when initializing vb comment delimiters (cheers to boesi for pointing it out). Added support for the following filetypes: debsources, eruby, xhtml and yaml. Added &quot;dummy&quot; support for the following filetypes: netrw, svn, taglist, and the null filetype. These filetypes have no comment delimiters but now that NERD knows about them it doesnt complain anymore.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6067">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.68</b></td>
+    <td class="roweven" valign="top" nowrap><i>2006-08-13</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Added an option called NERD_mapleader which allows you to change the two keys that all the mappings begin with by default. This will allow users to change all mappings easily so they dont conflict with any other plugins. Thanks to Tim Carey-Smith and Gary Church whose complaints prompted me to make this option :)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=5716">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.67</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2006-05-18</i></td>
+    <td class="rowodd" valign="top" nowrap>7.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Replaced the NERD_dont_create_menu_shortcut option with NERD_menu_mode. This new option allows the user to specify 1) whether a comment menu should be made and 2) whether this menu should have &lt;alt&gt;-c as a shortcut. Go :help NERD_menu_mode for more info. Thanks to Joseph Barker for the sugesting that the menu should be an optional feature.
<br>
<br>Added suppport for plaintex, context and mail filetypes (when commenting a &quot;mail&quot; file &quot;&gt; &quot; is used as the left delimiter so that the commented text appears as quoted text in the email). Thanks to Jonathan Derque for emailing me with these filetypes.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=5576">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.66</b></td>
+    <td class="roweven" valign="top" nowrap><i>2006-04-18</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Applied a patch that Norick Chen emailed to me that fixed the asp delimiters (which were wrong and caused an error)
<br>
<br>Thanks Norick :)
<br>
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=5542">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.65</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2006-04-11</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Made minimal comments use the NERD_place_holder_regexp option. Now if place holders are needed but are disabled for the current filetype then the minimal comment is aborted. Thanks to Stefano Zacchiroli emailing me and prompting this change.
<br>
<br>Fixed a minor bug with minimal comments.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=5535">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.64</b></td>
+    <td class="roweven" valign="top" nowrap><i>2006-04-09</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Refactored the code a bit and removed the NERD_use_toggle_coms_default and
<br>NERD_use_sexy_coms_default_regexp options. Now you have to adjust the key
<br>mappings to achieve the same effects as these options
<br>
<br>Sexy comments now always use the c style delimiters if they are available (even if another set of multipart delims is available) because they generally look the best.
<br>
<br>Fixed a bug that occured when using the tabs in vim7 (thanks to Harry for pointing it out:).
<br>
<br>Added a new commenting type called &quot;minimal&quot; comments where a SINGLE set of multipart delimiters is used to comment out a bunch of lines. Go :help NERD_com-minimal-comment for details. Thanks to Stefano Zacchiroli for this suggestion.
<br>
<br>Fixed some random little bugs.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=5167">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.63</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2006-02-12</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">fixed a bug that was stopping the NERD_space_delim_filetype_regexp option from working with left aligned toggle comments. Thanks to boesi for pointing this out.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4985">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.62</b></td>
+    <td class="roweven" valign="top" nowrap><i>2006-01-17</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed 2 bugs that caused problems when uncommenting sexy comments. Thanks to Torsten Blix for emailing me about them.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4970">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.61</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2006-01-14</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Applied a patch sent to me by Eike Von Seggern that fixed a bug that caused a space to be added to the end of the line when commenting with single-part delimiters. </td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4956">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.60</b></td>
+    <td class="roweven" valign="top" nowrap><i>2006-01-10</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Added a new option that turns off the NERD_comments menu shortcut (Alt-c) which could interfere with other (Non-NERD)&nbsp;&nbsp;mappings. Thanks to Nguyen for pointing out this problem :)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4697">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.59</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-10-25</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">fixed a small bug that was causing problems with spaces around delimiters.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4696">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.58</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-10-24</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">fixed a bug that could be a problem when changing buffers. Thanks to David Bourgeois for pointing it out.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4691">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.57</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-10-21</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed a retarded bug when commenting c files (thanks to David&nbsp;&nbsp;Bourgeois for pointing it out).
<br>Changed the NERD_dont_remove_spaces option to NERD_dont_remove_spaces_regexp and made it take a regular expression. Go :help NERD_dont_remove_spaces_regexp for details. Put a section in the help file that gives some examples of regular expressions that&nbsp;&nbsp;you may want to use for some of the options. Go :help NERD_com-reg-exps for details.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4641">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.56</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-10-01</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Tweaked the behaviour of the &quot;toggle comment&quot; mapping: now if you are commenting a range (with toggle comments) and&nbsp;&nbsp;you have the NERD_use_nested_comments_default option turned on it will comment the already comment lines again. Cheers to Igor Prischepoff for this suggestion. I also reorgansied the help page and added some stuff to make it more readable :)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4581">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.55</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-09-14</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">made the \ci mapping work with whole lines line the \c&lt;space&gt; mapping does i.e the mapping only counts a line as commented if it commented from the start of the line.
<br>Fixed a couple of silly bugs</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4578">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.54</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-09-13</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed the \cn mapping that i broke in the last version. Thanks to harry for pointing that out.
<br>Changed the behaviour of toggle comments: now lines are only counted as commented if they are commented from the beginning of the line. Thanks to Igor Prischepoff for suggesting this. I applied a patch by Richard (Krischikm) which fixed a couple of bugs and added a new option (see :help NERD_use_ada_with_spaces for details). I changed how the script handles tabs: now each line is examined individually instead of using examining the &expandtabs option and assuming it applies to every line. The script should not interfere with the tabbing style of any file you edit now... even if they alternate between soft and hard tabs with each line :).&nbsp;&nbsp;Stopped the cursor jumping when the \cu mapping is used.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4566">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.53</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-09-12</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Made some changes to how spaces around comments are removed when uncommenting... basically they are always removed unless the new option NERD_dont_remove_spaces is set. Go :help NERD_dont_remove_spaces for details. I added this functionality because i usually dont have NERD_comments adding spaces after/before the left/right delimiters but when im editing code written by people who DO it makes me insane because it is uncommented incorrectly.&nbsp;&nbsp;Fixed the cursor and screen jumping bugs... hopefully :)</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4557">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.52</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-09-06</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed an error in the help file. Added support for // comments in c. Made an option to turn these // comments on by default (go :help NERD_use_single_part_c_comments for details). Thanks to Richard Willis whose feedback prompted these changes :)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4554">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.51</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-09-05</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Added yet another mapping (&lt;leader&gt;ci) which inverts the commented state of every selected line. i.e. for each line selected, if it is commented it is uncommented and vice versa. Thanks to Nick Brettell for the idea. Improved the cursor positioning after commenting is done so if you do a visual comment the cursor returns to a better position. Removed some line continuations that were screwing up on some systems. Thanks to Richard for pointing that out to me.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4541">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.50</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-08-31</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Added a new mapping &lt;leader&gt;c&lt;space&gt; that toggles the comment state of the selected lines. It uncomments all the lines if the first line is commented and comments them otherwise. The mapping can be changed with this option: NERD_com_line_toggle_map. Toggle commenting can be made the default commenting method (so it applied when &lt;leader&gt;cc is pressed) with this option: NERD_use_toggle_coms_default. Thanks to Igor Prischepoff for the idea :)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4538">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.49</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-08-30</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed a bug that was causing problems when the ignorecase option in vim was set. Thanks to Brent Rice for telling me about this problem and helping me track the bug down :)</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4533">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.48</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-08-28</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed a bug with sexy comments that was stopping them from working when you were using the alternative set of delimiters for some languages (eg c/java/etc)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4516">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.47</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-08-25</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed bugs with sexy comments (most of the bugs were only an issue when using compact sexy comments): Now they work properly if they end on a blank line. When uncommenting sexy comments the display window doesnt jump anymore. If the sexy comment starts or ends on another ordinary&nbsp;&nbsp;comment it no longer screws up. Sexy comments no longer delete parts of lines (which they did from time to time). Blank lines above compact sexy comments are no longer removed when uncommenting.
<br>Fixed another bug with the &lt;C-c&gt; mapping.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4436">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.46</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-07-17</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">enhanced the option: NERD_comment_whole_lines_in_v_mode so that it can now take 2 values. Go :help NERD_comment_whole_lines_in_v_mode for an explaination. Thanks to jorge scandaliaris for emailing me with his criticism about this :)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4429">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.45</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-07-14</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Now the script doesnt create a seperate filetype for h files unless&nbsp;&nbsp;you tell it to with a new option called NERD_create_h_filetype. Go :help NERD_create_h_filetype for more info.
<br>This update was done to prevent NERD_comments from&nbsp;&nbsp;screwing with the taglist plugin. 
<br>
<br>Thanks to Markus Erlmann for pointing out that it caused problems.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4413">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.44</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-07-06</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed a bug with the &lt;C-c&gt; mapping after i broke it (again :().
<br>Thanks to Martin Stubenschrott for pointing this bug out!
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4404">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.43</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-06-30</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed a bug with visual commenting.
<br>Added a new option, go :help NERD_comment_whole_lines_in_v_mode for details. Thanks to&nbsp;&nbsp;jorge scandaliaris and&nbsp;&nbsp;Shufeng Zheng for their suggestions about this.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4393">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.42</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-06-26</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Now, when any visual comments are made, the cursor is placed at the top left line/col of the visual selection block after the comment is done instead of on the top line at the first col. Thanks to Nick Brettell for complaining about this.
<br>
<br>Added support for .geek files hahahaha</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4369">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.41</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-06-16</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">fixed a small bug with the &lt;C-c&gt; functionality when the script is configured to put extra spaces between the delimiters.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4292">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.40</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-05-18</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed a bug that was screwing up place holders with nested commenting when NERD_use_nested_comments_default option is set. Changed the left and right default place holders because the strings that were being used were sort of common in c/c++/java/... files. If you liked them the way they were you can just set them back with the NERD_lPlace and NERD_rPlace options.
<br>Thanx to Nick for complaining about the place holders and spotting the other bug :P
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4283">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.39</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-05-15</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed a retarded bug with the &lt;C-c&gt; mapping.
<br>Changed the &lt;leader&gt;ce mapping to have a default mapping of &lt;leader&gt;cA and added a new mapping that adds a comment delimiter to the start of the current line and inserts between the delimiters - the default mapping is &lt;leader&gt;cI (thats an uppercase i not a lowercase L).
<br>Fixed a bug that caused the script to spaz out if you tried to comment a file with no filetype.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4279">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.38</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-05-13</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Added new functionality for when text is commented in normal visual mode (i.e not visual-block or visual-line). Now Nerd_comments comments out exactly the text that is selected in visual mode regardless of the type of visual mode you are in. 
<br>Thanks to Nick Brettell his ideas about this!
<br>
<br>Also, if you are commenting out text in visual or visual-block mode, NERD_comments will use multip-part delimiters is they are available so that the exact text that was selected will be exactly what is commented out - a new option has been added to turn off this behaviour (go :help NERD_allow_any_visual_delims_regexp for details).
<br>
<br>Fixed a couple of small bugs with the &lt;C-c&gt; mapping that prolly on one even noticed :P
<br>
<br>
<br>
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4260">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.37</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-05-09</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Added a new mapping/menu item:
<br>Now when &lt;leader&gt;ce is pressed a comment is appended to the EOL and the cursor gets put in insert mode in the appropriate place to type the comment.
<br>
<br>Thanks to Litchi for emailing me with this idea :)
<br>
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4258">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.36</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-05-08</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">added lots more supported filetypes</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4237">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.35</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-05-04</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Added support for some new filetypes.
<br>Fixed a small bug with sexy comments.
<br>Fixed a bug with tabs that was not too serious but would screw up commenting of things like makefiles in a big way. Cheers to Nick Brettell for pointing this bug out!</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4223">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.34</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-04-29</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Add support for a couple more filetypes. Thanks to Sam R for emailing me about them!</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4221">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.33</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-04-29</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">added a new mapping/menuItem that yanks the current line or selected text before commenting it out. This is handy if you wanna experiment with a piece of code... u just comment out the code and put a copy underneath it that you experiment on.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4201">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.32</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-04-25</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">now,&nbsp;&nbsp;if the current filetype matches NERD_use_sexy_coms_default_regexp then sexy comments will only be used if you are commenting more than one line with &lt;leader&gt;cc... i thought sexy comments on one line looked retarded. Of course you can still do one line sexy comments with &lt;leader&gt;cs</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4198">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.31</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-04-25</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Added a new option called NERD_use_sexy_coms_default_regexp. This option is used to tell NERD_comments to use sexy comments for certain filetypes by default when &lt;leader&gt;cc is pressed.
<br>
<br>Now if you edit a filetype that the script doesnt know about the warning it echos isnt so &quot;loud&quot;
<br>
<br>Thanks to Nguyen for suggesting these changes.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4195">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.30</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-04-22</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Have finally implemented &quot;sexy&quot; comments. Go :help NERD_com_sexy_commenting to see what they are... i cant even be stuffed explaining.
<br>
<br>There is an option to make your sexy comments compact and use up less lines, go :help NERD_use_compact_sexy_com_regexp.
<br>
<br>Thanks to Nguyen for the idea... sorry it took so long dude :P</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4181">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.29</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-04-18</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">There are a couple of new options to tell NERD_comments to always left align, right align or both align, comment delimiters when commenting multiple lines in visual mode. Go :help NERD_left_align_regexp, :help NERD_right_align_regexp. If the current filetype matches one or both of these regular expressions then hitting &lt;leader&gt;cc will automatically align the delimiters. 
<br>
<br>There are comment mappings/menu items which can be used to do aligned comments for any filetype. The mappings are &lt;leader&gt;cl &lt;leader&gt;cr and &lt;leader&gt;cb for left, right and both aligned comments respectively. These mappings and menu items assume that the comments will be nested if need be.
<br>
<br>Now, when uncommenting lines, the script looks for left and right delimiters separately so for eg: if you uncomment a line with one right delimiter on it (but no left delim) then it will still be removed.
<br>
<br>Fixed a couple of minor bugs.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4156">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.28</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-04-12</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Added a menu with menu items for each of the scripts key mappings.
<br>Refactored the code a bit.
<br>Now, if&nbsp;&nbsp;you edit a filetype that vim doesnt know about the script wont crap out.
<br>Added support for a couple more filetypes.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4131">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.27</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-04-06</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">a few bug fixes</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4122">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.26</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-04-05</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Removed an echoerr that i forgot to remove from last release...</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4119">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.25</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-04-04</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Updated comment recognition heuristics. Modified the place holder system a bit so it is better. Did some refactoring to simplify the code a bit. Fixed some random bugs</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4113">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.24</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-04-01</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed some bugs with place holders.
<br>
<br>Parameterised some of the place holder stuff to make it more customisable. There are now 3 more options: NERD_lPlace, NERD_rPlace and NERD_place_holder_regexp. These options are used to control the strings that are used as place holders and to specify the filetypes NERD_comments will use place holders for. Go :help and the name of each option for more info
<br>
<br>Now when a line is uncommented, the outtermost delimiters are removed regardless of whether they are the alternative delimiters for that filetype or not</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4111">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.23</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-04-01</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Added support for place holders when nesting comments with left AND right delimiters.
<br>Now if you go &lt;leader&gt;cn on a line of already commented code (eg: /* int foo */), the current delimiters will be swapped for place holders so the example line will become: /*[+ int foo +]*/ where [+ and +] are the place holders.
<br>Also, i fixed a pretty major bug with visual-block commenting</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4088">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.22</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-28</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed the syntax highlighting probs with h files.
<br>
<br>There is a new option which is used to place a space after the left delimiter and before the right delimiter. The option is set to a regular expression and any filetypes that match this expression have the aforementioned spaces added when commenting. Go :help NERD_space_delim_filetype_regexp for details.
<br>
<br>Thanks to Nguyen for pointing these emailing me about these things!!
<br>
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4082">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.21</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-03-26</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">fixed some bugs.
<br>added support for more filetypes</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4081">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.20</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-26</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">did some refactoring
<br>
<br>added support for more filetypes</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4068">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.19</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-03-24</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">If the filetype is unkown to the script it now looks at &commentstring to get the comment delimiters for that filetype</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4064">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.18</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-23</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Block commenting is done automatically now... if you select some text in visual-block mode and go &lt;leader&gt;cc it will&nbsp;&nbsp;behave the same as if you pushed &lt;leader&gt;cb before.
<br>
<br>Similarly, if you select some text with visual-block mode and go &lt;leader&gt;cn it wll behave as if you had pushed &lt;leader&gt;cB
<br>
<br>the &lt;leader&gt;cb and &lt;leader&gt;cB mappings have now been removed cos they are redundant
<br>
<br>The comment recognition heuristics have been updated a little bit so NERD_comments is now a bit better at recognising comment delimiters</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4062">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.17</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-03-23</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">block commenting is much better now</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4047">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.16</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-21</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">umm, the script has been changed a lot...
<br>- the keymappings and options are different and there is waaaay more of them
<br>- there is now way more functionality provided by the script
<br>- there is a help file that is self-installing and fully contained in the script (i stole the installation function from the vimspell plugin (thx vimspell!!))
<br>- the internals of the script are a bit more sophisticated in the way they recognise comments (they have to be cos of the new functionality) but it is not perfect at recognising comment delimiters (infact it only uses a set of heuristics) 
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4026">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.15</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-03-15</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Changed the guts of the script a bit.
<br>
<br>Now the imap for &lt;C-c&gt; is done automatically which means that adding support for commenting another language is really easy and takes just one line!
<br>
<br>Haskell and lisp are now supported
<br>
<br>There is a new function that is designed to handle programming languages with more than one commenting style which is a bit of a hack but works well. 
<br>
<br>Theres another option NERD_use_c_style_prolog_comments
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3983">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.14</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-09</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Did a bit of refactoring... no functionality changes.
<br>
<br>Thanks to Matthew Hawkins for pointing out the code repitition :P</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3976">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.13</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-03-07</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">- added a new option: NERD_use_c_comments_for_h_files. This option is needed cos
<br>&nbsp;&nbsp;h files are used with c files which only allow /**/ comments, but they are also
<br>&nbsp;&nbsp;used with c++/c# which allow // comments which are illegal in c
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>- the option NERD_use_slash_star_java_cpp_comments now affects c# files as well.
<br>&nbsp;&nbsp;This means that c# files are now commented like c++/java files
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>- added a new autocommand which sets the filetype to h if we enter a buffer with
<br>&nbsp;&nbsp;an h file in it. This was needed cos some versions of vim dont seem to have an h
<br>&nbsp;&nbsp;filetype. Some versions of vim treat h files as cpp files which screws everything up!!!
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3971">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.12</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-06</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed a bug with forced commenting (&lt;leader&gt;&lt;leader&gt;c)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3967">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.11</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-03-05</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Some minor bug fixes and improvements</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3957">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.10</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-03</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">An additional mapping has been added:
<br>&lt;leader&gt;&lt;leader&gt;c will now comment out the selected lines and will force nested commenting (provided the comment style has no right delimiter - to avoid compiler errors). Note that if the option NERD_allow_nested_comments is set then &lt;leader&gt;c performs this behaviour anyway...
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3946">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.09</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-03-01</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">- there is a new option NERD_allow_nested_comments which will allow nested comments provided that there is no right delimiter for that commenting style. This should prevent nested commenting errors.
<br>
<br>eg. the option will allow nested // style java comments (which will not produce compiler errors) but will not allow nested /* */ style c comments (which would cause compiler errors). 
<br>The reason this feature has been added is the following: Say that you have commented out an entire function which already has comments in it... when you uncomment out the function, errors will result because of the comments that were already there that have been uncommented. This way those comments will become nested comments and the function will be exactly as it was before you commented it.
<br>
<br>- the option NERD_double_slash_java_comments has been changed to NERD_use_star_slash_java_cpp_comments. Now, when editing java/c++ file&nbsp;&nbsp;// style comments are used by default unless this option is set. This is to make it easier for ppl who want to use the nested comments option as well...</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3944">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.08</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-01</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">- Massive refactoring which has significantly reduced the size of the script
<br>- Corrections to some of the comment delimiters used
<br>- also the filetype event used in the auto commands that turn on the mappings has been capitalised to FileType to fix a problem with some versions of vim
<br>- version number is now in the script
<br>
<br>All of this was done by Matthew Hawkins... THANK YOU VERY MUCH !!! :) </td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3939">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.07</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-02-28</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">- Now, when commenting lines of code, lines that are already commented out are not commented again
<br>- when commenting code, blank lines (or lines containing only spaces and/or tabs) are not commented
<br>- an option has been added which lets you have // style java comments instead of /* */ java comments just stick 'let NERD_double_slash_java_comments=1' in your vimrc
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3928">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.06</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-02-27</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Now the left comment delimiter is placed in the position that the leftmost character occupies instead of at the start of the line. This means that indenting is preserved</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3924">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.05</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-02-27</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">fixed bug for removing comment delimiters
<br>
<br>added support for shite loads more filetypes</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3915">NERD_comments.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.04</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-02-26</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">The functions that turn on the comment mappings are now local to the script</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3914">NERD_comments.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.03</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-02-26</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Now the comment mappings are loaded automatically.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3913">NERD_comments.vim.gz</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.02</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-02-25</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">fixed some bugs. Comments now work for c. Also the hlsearch option is not potentially changed when the comment mappings are used</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3908">NERD_comments.vim.gz</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.01</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-02-25</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="rowodd" valign="top" width="2000">err, various corrections to comments</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3907">NERD_comments.vim.gz</a></td>
+    <td class="roweven" valign="top" nowrap><b>1</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-02-25</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=7006">Marty Grenfell</a></i></td>
+    <td class="roweven" valign="top" width="2000">Initial upload</td>
+</tr>
+</table>
+<!-- finish off the framework -->
+          </td>
+        </tr>
+      </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 vim at vim.org after searching
+      <a href="http://groups.yahoo.com/group/vim">the archive</a>.
+      Help Bram <a href="http://iccf-holland.org/">help Uganda</a>.
+      </small>
+	&nbsp;
+	&nbsp;
+
+	<!-- Start of StatCounter Code -->
+	<script type="text/javascript" language="javascript">
+	var sc_project=1417324; 
+	var sc_invisible=1; 
+	var sc_partition=11; 
+	var sc_security="d41633bc"; 
+	</script>
+
+	<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c12.statcounter.com/counter.php?sc_project=1417324&java=0&security=d41633bc&invisible=0" alt="free tracking" border="0"></a> </noscript>
+	<!-- End of StatCounter Code -->
+          </td>
+
+    <td align="right" valign="top">
+      	<a href="http://www.webconceptgroup.net"><img src="/images/logo_sponsor_wcg.jpg" width="131" height="30" border="0" alt="Sponsored by Web Concept Group Inc."></a>
+	<a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=8&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></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>
+

Modified: trunk/packages/vim-scripts/html/plugin_a.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_a.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_a.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_a.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>1769/559</b>,
-    Downloaded by 14575  </td>
+    Downloaded by 14593  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_bufexplorer.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_bufexplorer.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_bufexplorer.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_bufexplorer.vim.html Tue Jul 24 07:47:16 2007
@@ -153,8 +153,8 @@
 <tr>
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
-    Rating <b>1550/509</b>,
-    Downloaded by 27539  </td>
+    Rating <b>1560/513</b>,
+    Downloaded by 27601  </td>
 </tr>
 </table>
 <p>
@@ -204,340 +204,348 @@
     <th valign="top">release notes</th>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7032">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>7.0.15</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2007-04-27</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7401">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.9.17</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-07-23</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Mark Smithfield for suggesting bufexplorer needed to handle the ':args' command.
<br>Fixed issue reported by Liu Jiaping on non Windows systems, which was
<br>&nbsp;&nbsp;...
<br>Open file1, open file2, modify file1, open bufexplorer, you get the following error:
<br>--------8&lt;--------
<br>Error detected while processing function
<br>&lt;SNR&gt;14_StartBufExplorer..&lt;SNR&gt;14_SplitOpen:
<br>line&nbsp;&nbsp;&nbsp;&nbsp;4:
<br>E37: No write since last change (add ! to override)
<br>--------8&lt;--------
<br>
<br>But the worse thing is, when I want to save the current buffer and type ':w', I get another error message:
<br>
<br>--------8&lt;--------
<br>E382: Cannot write, 'buftype' option is set 
<br>--------8&lt;--------</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6897">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>7.0.14</b></td>
-    <td class="roweven" valign="top" nowrap><i>2007-03-23</i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed issue with 'drop' command. Various enhancements and improvements.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=7032">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>7.0.15</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-04-27</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Randall Hansen for removing the requirement of terminal versions to be recompiled with 'gui' support so the 'drop' command would work. The 'drop' command is really not needed in terminal versions.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=6773">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>7.0.13</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2007-02-23</i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Mark Smithfield for suggesting bufexplorer needed to handle the ':args' command.
<br>Fixed issue reported by Liu Jiaping on non Windows systems, which was
<br>&nbsp;&nbsp;...
<br>Open file1, open file2, modify file1, open bufexplorer, you get the following error:
<br>--------8&lt;--------
<br>Error detected while processing function
<br>&lt;SNR&gt;14_StartBufExplorer..&lt;SNR&gt;14_SplitOpen:
<br>line&nbsp;&nbsp;&nbsp;&nbsp;4:
<br>E37: No write since last change (add ! to override)
<br>--------8&lt;--------
<br>
<br>But the worse thing is, when I want to save the current buffer and type ':w', I get another error message:
<br>
<br>--------8&lt;--------
<br>E382: Cannot write, 'buftype' option is set 
<br>--------8&lt;--------</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=6897">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.0.14</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-03-23</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Fixed Winmanager integration. Thanks to Dave Eggum for another major update. Most notable changes are, improved speed and code clean up. Please see the bufexplorer help for a full list of changes and updates.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6484">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>7.0.12</b></td>
-    <td class="roweven" valign="top" nowrap><i>2006-11-30</i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Randall Hansen for removing the requirement of terminal versions to be recompiled with 'gui' support so the 'drop' command would work. The 'drop' command is really not needed in terminal versions.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6773">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>7.0.13</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-02-23</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">MAJOR Update. Please Note that this version will ONLY run with Vim version 7.0 or greater.
<br>
<br>Dave Eggum has made some 'significant' updates to this latest version:
<br>&nbsp;&nbsp;- Added BufExplorerGetAltBuf() global function to be used in the user’s rulerformat.
<br>&nbsp;&nbsp;- Added g:bufExplorerSplitRight option.
<br>&nbsp;&nbsp;- Added g:bufExplorerShowRelativePath option with mapping.
<br>&nbsp;&nbsp;- Added current line highlighting.
<br>&nbsp;&nbsp;- The split type can now be changed whether bufexplorer is opened in split mode or not.
<br>&nbsp;&nbsp;- Various major and minor bug fixes and speed improvements.
<br>&nbsp;&nbsp;- Sort by extension.
<br>&nbsp;&nbsp;Other improvements/changes:
<br>&nbsp;&nbsp;- Changed the help key from '?' to &lt;F1&gt; to be more 'standard'.
<br>&nbsp;&nbsp;- Fixed splitting of vertical bufexplorer window.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=5409">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>7.0.11</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2006-03-10</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Fixed a couple of highlighting bugs, reported by David Eggum. He also changed passive voice to active on a couple of warning messages.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=5353">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>7.0.10</b></td>
-    <td class="roweven" valign="top" nowrap><i>2006-03-02</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Fixed bug report by Xiangjiang Ma. If the 'ssl' option is set, the slash character used when displaying the path was incorrect. Thanks Xiangjiang!
<br></td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=5337">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>7.0.9</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2006-02-28</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Martin Grenfell found and eliminated an annoying bug in the bufexplorer/winmanager integration. The bug was were an annoying message would be displayed when a window was split or a new file was opened in a new window. Thanks Martin!</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4993">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>7.0.8</b></td>
-    <td class="roweven" valign="top" nowrap><i>2006-01-18</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Mike Li for catching a bug in the WinManager integration. The bug was related to the incorrect displaying of the buffer explorer's window title.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4904">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>7.0.7</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2005-12-19</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Jeremy Cowgar for adding a new enhancement. This enhancement allows the user to press 'S', that is capital S, which will open the buffer under the cursor in a newly created split window.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4775">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>7.0.6</b></td>
-    <td class="roweven" valign="top" nowrap><i>2005-11-18</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Larry Zhang for finding a bug in the &quot;split&quot; buffer code. If you force set g:bufExplorerSplitType='v' in your vimrc, and if you tried to do a \bs to split the bufexplorer window, it would always split horizontal, not vertical. He also found that I had a typeo in that the variable g:bufExplorerSplitVertSize was all lower case in the documentation which was incorrect.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4680">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>7.0.5</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2005-10-18</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Mun Johl for pointing out a bug that if a buffer was modified, the '+' was not showing up correctly.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4645">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>7.0.4</b></td>
-    <td class="roweven" valign="top" nowrap><i>2005-10-03</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Fixed a problem discovered first by Xiangjiang Ma. Well since I've been using vim 7.0 and not 6.3, I started using a function (getftype) that is not in 6.3. So for backward compatibility, I conditionaly use this function now.&nbsp;&nbsp;Thus, the g:bufExplorerShowDirectories feature is only available when using vim 7.0 and above.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4636">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>7.0.3</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2005-09-30</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Erwin Waterlander for finding a problem when the last buffer was deleted. This issue got me to rewrite the buffer display logic (which I've wanted to do for sometime now).
<br>Also great thanks to Dave Eggum for coming up with idea for g:bufExplorerShowDirectories. Directories usually show up in the list from using a command like &quot;:e .&quot;, this controls how those are displayed.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4072">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>7.0.2</b></td>
-    <td class="roweven" valign="top" nowrap><i>2005-03-25</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Thomas Arendsen Hein for finding a problem when a user has the default help turned off and then brought up the explorer. An E493 would be displayed.
<br></td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3994">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>7.0.1</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2005-03-10</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Erwin Waterlander for finding a couple problems. The first problem allowed a modified buffer to be deleted.&nbsp;&nbsp;Opps! The second problem occured when several files were opened, BufExplorer was started, the current buffer was deleted using the 'd' option, and then BufExplorer was exited. The deleted buffer was still visible while it is not in the buffers list. Opps again!</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3932">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>7.0.0</b></td>
-    <td class="roweven" valign="top" nowrap><i>2005-02-28</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Shankar R. for suggesting to add the ability to set the fixed width (g:bufExplorerSplitVertSize) of a new window when opening bufexplorer vertically and fixed height (g:bufExplorerSplitHorzSize) of a new window when opening bufexplorer horizontally. By default, the windows are normally split to use half the existing width or height.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3262">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.3.0</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2004-07-23</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Added keepjumps so that the jumps list would not get clutered with bufexplorer related stuff.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=2937">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.2.3</b></td>
-    <td class="roweven" valign="top" nowrap><i>2004-04-15</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Jay Logan for finding&nbsp;&nbsp;a bug in the vertical split postion of the code. When selecting that the window was to be split vertically by doing a '\bv', from then on, all splits, i.e. '\bs', were split vertically, even though g:bufExplorerSplitType was not set to 'v'.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=2652">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.2.2</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2004-01-09</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Patrik Modesto for adding a small improvement. For some reason his bufexplorer window was always showing up folded. He added 'setlocal nofoldenable' and it was fixed. If you are having the same problem, this version is for you...
<br></td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=2383">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.2.1</b></td>
-    <td class="roweven" valign="top" nowrap><i>2003-10-09</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks goes out to Takashi Matsuo for added the 'fullPath' sorting logic and option.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=2075">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.2.0</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2003-06-13</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks goes out to Simon Johann-Günter for spotting and fixing a problem in that the last search pattern is overriden by the search pattern for blank lines.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=1968">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.1.6</b></td>
-    <td class="roweven" valign="top" nowrap><i>2003-05-05</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Artem Chuprina for finding a pesky bug that has been around for sometime now. The &lt;esc&gt; key mapping was causing the buffer explored to close prematurely when vim was run in an xterm. The &lt;esc&gt; key mapping is now removed.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=1948">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.1.5</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2003-04-28</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Khorev Sergey. Added option to show default help or not.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=1822">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.1.4</b></td>
-    <td class="roweven" valign="top" nowrap><i>2003-03-18</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks goes out to Valery Kondakoff for suggesting the addition of setlocal nonumber and foldcolumn=0. This allows for line numbering and folding to be turned off temporarily while in the explorer.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=1799">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.1.3</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2003-03-11</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Added the ability to force the newly split window to be temporarily vertical, which was suggested by Thomas Glanzmann. Added folding. Did some code cleanup.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=1376">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.1.2</b></td>
-    <td class="roweven" valign="top" nowrap><i>2002-11-05</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Now pressing the &lt;esc&gt; key will quit, just like 'q'. Added folds to hide winmanager configuration. If anyone had the 'C' option in their cpoptions they would receive a E10 error on startup of BufExplorer. cpo is now saved, updated and restored. Thanks to Charles E Campbell, Jr. Attempted to make sure there can only be one BufExplorer window open at a time.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=724">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.1.1</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2002-03-28</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Brian D. Goodwin for adding toupper to FileNameCmp. This way buffers sorted by name will be in the correct order regardless of case.
<br></td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=684">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.0.16</b></td>
-    <td class="roweven" valign="top" nowrap><i>2002-03-14</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Andre Pang for the original patch/idea to get bufexplorer to work in insertmode/modeless mode (evim). Added Initialize and Cleanup autocommands to handle commands that need to be performed when starting or leaving bufexplorer.
<br></td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=617">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.0.15</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2002-02-20</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Srinath Avadhanulax added a patch for winmanager.vim.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=614">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.0.14</b></td>
-    <td class="roweven" valign="top" nowrap><i>2002-02-19</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Fix a yew more bug that I thought I already had fixed. Thanks to Eric Bloodworth for adding 'Open Mode/Edit in Place'. Added vertical splitting.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=553">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.0.13</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2002-02-05</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Charles E Campbell, Jr. for pointing out some embarrassing typos that I had in the documentation. I guess I need to run the spell checker more :o)</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=543">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.0.12</b></td>
-    <td class="roweven" valign="top" nowrap><i>2002-02-04</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Madoka Machitani, for the tip on adding the augroup command around the MRUList autocommands.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=513">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.0.11</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2002-01-26</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Fixed bug report by Xiangjiang Ma. '&quot;=' was being added to the search history which messed up hlsearch.
<br></td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=472">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.0.10</b></td>
-    <td class="roweven" valign="top" nowrap><i>2002-01-14</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Added the necessary hooks so that the winmanager.vim script could more easily integrate with this script. Now the winmanager.vim script should not have to have it's own version of bufexplorer.vim.
<br>Tried to improve performance.
<br>Remember to look at 'help: add-local-help' on how to add the help file into the vim help system.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=427">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.0.9</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2001-12-17</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Now you can sort the buffer list by most recently used (MRU). Please note that this is now a .zip file. Please unzip in your vimfiles, ~/.vim or whatever directory you store your vim stuff in. This file contains \plugin\bufexplorer.vim and \doc\bufexplorer.txt. To add the nifty help to vim look under ':help add-local-help' for more information.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=393">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.0.8</b></td>
-    <td class="roweven" valign="top" nowrap><i>2001-12-03</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Was not resetting the showcmd command correctly.
<br>Added nifty help file.</td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=360">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.0.7</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2001-11-19</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Thanks to Brett Carlane for some great enhancements. Some are added, some are not, yet. Added highlighting of current and alternate filenames. Added spliting of path/filename toggle. Reworked ShowBuffers(). Changed my email address.
<br></td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=154">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.0.6</b></td>
-    <td class="roweven" valign="top" nowrap><i>2001-09-05</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Fixed problem with the SortListing() function failing when there was only one buffer to display.
<br></td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=93">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.0.5</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2001-08-10</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Fixed problems reported by David Pascoe, in that you where unable to hit 'd' on a buffer that belonged to a files that nolonger existed and that the 'yank' buffer was being overridden by the help text when the bufexplorer was opened.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=77">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.0.4</b></td>
-    <td class="roweven" valign="top" nowrap><i>2001-07-31</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Thanks to Charles Campbell for making this plugin more plugin *compliant*, adding default keymappings of &lt;Leader&gt;be and &lt;Leader&gt;bs as well as fixing the 'w:sortDirLabel not being defined' bug.
<br></td>
-</tr>
-<tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=72">bufexplorer.zip</a></td>
-    <td class="rowodd" valign="top" nowrap><b>6.0.3</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2001-07-30</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
-    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Added ability to sort buffers by 'buffer number' or 'name' in forward and reverse order.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=60">bufexplorer.zip</a></td>
-    <td class="roweven" valign="top" nowrap><b>6.0.2</b></td>
-    <td class="roweven" valign="top" nowrap><i>2001-07-25</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
-    <td class="roweven" valign="top" width="2000">Initial upload</td>
+    <td class="roweven" valign="top" width="2000">Fixed Winmanager integration. Thanks to Dave Eggum for another major update. Most notable changes are, improved speed and code clean up. Please see the bufexplorer help for a full list of changes and updates.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=6484">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.0.12</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2006-11-30</i></td>
+    <td class="rowodd" valign="top" nowrap>7.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">MAJOR Update. Please Note that this version will ONLY run with Vim version 7.0 or greater.
<br>
<br>Dave Eggum has made some 'significant' updates to this latest version:
<br>&nbsp;&nbsp;- Added BufExplorerGetAltBuf() global function to be used in the user’s rulerformat.
<br>&nbsp;&nbsp;- Added g:bufExplorerSplitRight option.
<br>&nbsp;&nbsp;- Added g:bufExplorerShowRelativePath option with mapping.
<br>&nbsp;&nbsp;- Added current line highlighting.
<br>&nbsp;&nbsp;- The split type can now be changed whether bufexplorer is opened in split mode or not.
<br>&nbsp;&nbsp;- Various major and minor bug fixes and speed improvements.
<br>&nbsp;&nbsp;- Sort by extension.
<br>&nbsp;&nbsp;Other improvements/changes:
<br>&nbsp;&nbsp;- Changed the help key from '?' to &lt;F1&gt; to be more 'standard'.
<br>&nbsp;&nbsp;- Fixed splitting of vertical bufexplorer window.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=5409">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>7.0.11</b></td>
+    <td class="roweven" valign="top" nowrap><i>2006-03-10</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed a couple of highlighting bugs, reported by David Eggum. He also changed passive voice to active on a couple of warning messages.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=5353">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.0.10</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2006-03-02</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed bug report by Xiangjiang Ma. If the 'ssl' option is set, the slash character used when displaying the path was incorrect. Thanks Xiangjiang!
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=5337">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>7.0.9</b></td>
+    <td class="roweven" valign="top" nowrap><i>2006-02-28</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Martin Grenfell found and eliminated an annoying bug in the bufexplorer/winmanager integration. The bug was were an annoying message would be displayed when a window was split or a new file was opened in a new window. Thanks Martin!</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4993">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.0.8</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2006-01-18</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Mike Li for catching a bug in the WinManager integration. The bug was related to the incorrect displaying of the buffer explorer's window title.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4904">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>7.0.7</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-12-19</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Jeremy Cowgar for adding a new enhancement. This enhancement allows the user to press 'S', that is capital S, which will open the buffer under the cursor in a newly created split window.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4775">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.0.6</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-11-18</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Larry Zhang for finding a bug in the &quot;split&quot; buffer code. If you force set g:bufExplorerSplitType='v' in your vimrc, and if you tried to do a \bs to split the bufexplorer window, it would always split horizontal, not vertical. He also found that I had a typeo in that the variable g:bufExplorerSplitVertSize was all lower case in the documentation which was incorrect.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4680">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>7.0.5</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-10-18</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Mun Johl for pointing out a bug that if a buffer was modified, the '+' was not showing up correctly.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4645">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.0.4</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-10-03</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed a problem discovered first by Xiangjiang Ma. Well since I've been using vim 7.0 and not 6.3, I started using a function (getftype) that is not in 6.3. So for backward compatibility, I conditionaly use this function now.&nbsp;&nbsp;Thus, the g:bufExplorerShowDirectories feature is only available when using vim 7.0 and above.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4636">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>7.0.3</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-09-30</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Erwin Waterlander for finding a problem when the last buffer was deleted. This issue got me to rewrite the buffer display logic (which I've wanted to do for sometime now).
<br>Also great thanks to Dave Eggum for coming up with idea for g:bufExplorerShowDirectories. Directories usually show up in the list from using a command like &quot;:e .&quot;, this controls how those are displayed.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4072">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.0.2</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-03-25</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Thomas Arendsen Hein for finding a problem when a user has the default help turned off and then brought up the explorer. An E493 would be displayed.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3994">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>7.0.1</b></td>
+    <td class="roweven" valign="top" nowrap><i>2005-03-10</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Erwin Waterlander for finding a couple problems. The first problem allowed a modified buffer to be deleted.&nbsp;&nbsp;Opps! The second problem occured when several files were opened, BufExplorer was started, the current buffer was deleted using the 'd' option, and then BufExplorer was exited. The deleted buffer was still visible while it is not in the buffers list. Opps again!</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=3932">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>7.0.0</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-02-28</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Shankar R. for suggesting to add the ability to set the fixed width (g:bufExplorerSplitVertSize) of a new window when opening bufexplorer vertically and fixed height (g:bufExplorerSplitHorzSize) of a new window when opening bufexplorer horizontally. By default, the windows are normally split to use half the existing width or height.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=3262">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.3.0</b></td>
+    <td class="roweven" valign="top" nowrap><i>2004-07-23</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Added keepjumps so that the jumps list would not get clutered with bufexplorer related stuff.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=2937">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.2.3</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2004-04-15</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Jay Logan for finding&nbsp;&nbsp;a bug in the vertical split postion of the code. When selecting that the window was to be split vertically by doing a '\bv', from then on, all splits, i.e. '\bs', were split vertically, even though g:bufExplorerSplitType was not set to 'v'.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=2652">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.2.2</b></td>
+    <td class="roweven" valign="top" nowrap><i>2004-01-09</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Patrik Modesto for adding a small improvement. For some reason his bufexplorer window was always showing up folded. He added 'setlocal nofoldenable' and it was fixed. If you are having the same problem, this version is for you...
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=2383">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.2.1</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2003-10-09</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks goes out to Takashi Matsuo for added the 'fullPath' sorting logic and option.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=2075">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.2.0</b></td>
+    <td class="roweven" valign="top" nowrap><i>2003-06-13</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks goes out to Simon Johann-Günter for spotting and fixing a problem in that the last search pattern is overriden by the search pattern for blank lines.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=1968">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.1.6</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2003-05-05</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Artem Chuprina for finding a pesky bug that has been around for sometime now. The &lt;esc&gt; key mapping was causing the buffer explored to close prematurely when vim was run in an xterm. The &lt;esc&gt; key mapping is now removed.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=1948">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.1.5</b></td>
+    <td class="roweven" valign="top" nowrap><i>2003-04-28</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Khorev Sergey. Added option to show default help or not.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=1822">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.1.4</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2003-03-18</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks goes out to Valery Kondakoff for suggesting the addition of setlocal nonumber and foldcolumn=0. This allows for line numbering and folding to be turned off temporarily while in the explorer.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=1799">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.1.3</b></td>
+    <td class="roweven" valign="top" nowrap><i>2003-03-11</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Added the ability to force the newly split window to be temporarily vertical, which was suggested by Thomas Glanzmann. Added folding. Did some code cleanup.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=1376">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.1.2</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2002-11-05</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Now pressing the &lt;esc&gt; key will quit, just like 'q'. Added folds to hide winmanager configuration. If anyone had the 'C' option in their cpoptions they would receive a E10 error on startup of BufExplorer. cpo is now saved, updated and restored. Thanks to Charles E Campbell, Jr. Attempted to make sure there can only be one BufExplorer window open at a time.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=724">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.1.1</b></td>
+    <td class="roweven" valign="top" nowrap><i>2002-03-28</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Brian D. Goodwin for adding toupper to FileNameCmp. This way buffers sorted by name will be in the correct order regardless of case.
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=684">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.0.16</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2002-03-14</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Andre Pang for the original patch/idea to get bufexplorer to work in insertmode/modeless mode (evim). Added Initialize and Cleanup autocommands to handle commands that need to be performed when starting or leaving bufexplorer.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=617">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.0.15</b></td>
+    <td class="roweven" valign="top" nowrap><i>2002-02-20</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Srinath Avadhanulax added a patch for winmanager.vim.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=614">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.0.14</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2002-02-19</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fix a yew more bug that I thought I already had fixed. Thanks to Eric Bloodworth for adding 'Open Mode/Edit in Place'. Added vertical splitting.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=553">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.0.13</b></td>
+    <td class="roweven" valign="top" nowrap><i>2002-02-05</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Charles E Campbell, Jr. for pointing out some embarrassing typos that I had in the documentation. I guess I need to run the spell checker more :o)</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=543">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.0.12</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2002-02-04</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Madoka Machitani, for the tip on adding the augroup command around the MRUList autocommands.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=513">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.0.11</b></td>
+    <td class="roweven" valign="top" nowrap><i>2002-01-26</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed bug report by Xiangjiang Ma. '&quot;=' was being added to the search history which messed up hlsearch.
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=472">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.0.10</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2002-01-14</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Added the necessary hooks so that the winmanager.vim script could more easily integrate with this script. Now the winmanager.vim script should not have to have it's own version of bufexplorer.vim.
<br>Tried to improve performance.
<br>Remember to look at 'help: add-local-help' on how to add the help file into the vim help system.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=427">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.0.9</b></td>
+    <td class="roweven" valign="top" nowrap><i>2001-12-17</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Now you can sort the buffer list by most recently used (MRU). Please note that this is now a .zip file. Please unzip in your vimfiles, ~/.vim or whatever directory you store your vim stuff in. This file contains \plugin\bufexplorer.vim and \doc\bufexplorer.txt. To add the nifty help to vim look under ':help add-local-help' for more information.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=393">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.0.8</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2001-12-03</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Was not resetting the showcmd command correctly.
<br>Added nifty help file.</td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=360">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.0.7</b></td>
+    <td class="roweven" valign="top" nowrap><i>2001-11-19</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Thanks to Brett Carlane for some great enhancements. Some are added, some are not, yet. Added highlighting of current and alternate filenames. Added spliting of path/filename toggle. Reworked ShowBuffers(). Changed my email address.
<br></td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=154">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.0.6</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2001-09-05</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Fixed problem with the SortListing() function failing when there was only one buffer to display.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=93">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.0.5</b></td>
+    <td class="roweven" valign="top" nowrap><i>2001-08-10</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Fixed problems reported by David Pascoe, in that you where unable to hit 'd' on a buffer that belonged to a files that nolonger existed and that the 'yank' buffer was being overridden by the help text when the bufexplorer was opened.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=77">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.0.4</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2001-07-31</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Thanks to Charles Campbell for making this plugin more plugin *compliant*, adding default keymappings of &lt;Leader&gt;be and &lt;Leader&gt;bs as well as fixing the 'w:sortDirLabel not being defined' bug.
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=72">bufexplorer.zip</a></td>
+    <td class="roweven" valign="top" nowrap><b>6.0.3</b></td>
+    <td class="roweven" valign="top" nowrap><i>2001-07-30</i></td>
+    <td class="roweven" valign="top" nowrap>6.0</td>
+    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="roweven" valign="top" width="2000">Added ability to sort buffers by 'buffer number' or 'name' in forward and reverse order.</td>
+</tr>
+<tr>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=60">bufexplorer.zip</a></td>
+    <td class="rowodd" valign="top" nowrap><b>6.0.2</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2001-07-25</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
+    <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=97">jeff lanzarotta</a></i></td>
+    <td class="rowodd" valign="top" width="2000">Initial upload</td>
 </tr>
 </table>
 <!-- finish off the framework -->

Modified: trunk/packages/vim-scripts/html/plugin_calendar.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_calendar.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_calendar.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_calendar.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>1088/442</b>,
-    Downloaded by 17159  </td>
+    Downloaded by 17170  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_cvsmenu.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_cvsmenu.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_cvsmenu.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_cvsmenu.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>84/29</b>,
-    Downloaded by 1886  </td>
+    Downloaded by 1888  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_gnupg.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_gnupg.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_gnupg.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_gnupg.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>476/180</b>,
-    Downloaded by 3306  </td>
+    Downloaded by 3307  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_info.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_info.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_info.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_info.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>559/198</b>,
-    Downloaded by 5044  </td>
+    Downloaded by 5046  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_lbdbq.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>12/3</b>,
-    Downloaded by 151  </td>
+    Downloaded by 156  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_minibufexpl.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_minibufexpl.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_minibufexpl.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_minibufexpl.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>2186/667</b>,
-    Downloaded by 22423  </td>
+    Downloaded by 22449  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_project.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_project.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_project.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_project.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>1655/481</b>,
-    Downloaded by 17597  </td>
+    Downloaded by 17637  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_sokoban.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_sokoban.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_sokoban.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_sokoban.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>521/143</b>,
-    Downloaded by 4647  </td>
+    Downloaded by 4653  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_supertab.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_supertab.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_supertab.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_supertab.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>243/74</b>,
-    Downloaded by 2815  </td>
+    Downloaded by 2834  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_taglist.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_taglist.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_taglist.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_taglist.vim.html Tue Jul 24 07:47:16 2007
@@ -153,8 +153,8 @@
 <tr>
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
-    Rating <b>4625/1434</b>,
-    Downloaded by 53208  </td>
+    Rating <b>4629/1435</b>,
+    Downloaded by 53293  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_tetris.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_tetris.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_tetris.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_tetris.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>639/231</b>,
-    Downloaded by 12081  </td>
+    Downloaded by 12090  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_themes.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_themes.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_themes.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_themes.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>1062/381</b>,
-    Downloaded by 20304  </td>
+    Downloaded by 20330  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_utl.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_utl.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_utl.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_utl.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>1481/482</b>,
-    Downloaded by 2953  </td>
+    Downloaded by 2961  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_vcscommand.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_vcscommand.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_vcscommand.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_vcscommand.vim.html Tue Jul 24 07:47:16 2007
@@ -153,8 +153,8 @@
 <tr>
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
-    Rating <b>1157/382</b>,
-    Downloaded by 16985  </td>
+    Rating <b>1161/383</b>,
+    Downloaded by 16995  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_whatdomain.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_whatdomain.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_whatdomain.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_whatdomain.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>0/4</b>,
-    Downloaded by 374  </td>
+    Downloaded by 375  </td>
 </tr>
 </table>
 <p>

Modified: trunk/packages/vim-scripts/html/plugin_winmanager.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/plugin_winmanager.vim.html?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_winmanager.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_winmanager.vim.html Tue Jul 24 07:47:16 2007
@@ -154,7 +154,7 @@
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
     Rating <b>658/220</b>,
-    Downloaded by 15035  </td>
+    Downloaded by 15042  </td>
 </tr>
 </table>
 <p>

Added: trunk/packages/vim-scripts/plugin/NERD_commenter.vim
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/plugin/NERD_commenter.vim?rev=995&op=file
==============================================================================
--- trunk/packages/vim-scripts/plugin/NERD_commenter.vim (added)
+++ trunk/packages/vim-scripts/plugin/NERD_commenter.vim Tue Jul 24 07:47:16 2007
@@ -1,0 +1,4518 @@
+" vim global plugin that provides easy code commenting for various file types
+" Last Change:  30 june 2007
+" Maintainer:   Martin Grenfell <martin_grenfell at msn.com>
+let s:NERD_commenter_version = 2.0.7
+
+" For help documentation type :help NERDCommenter. If this fails, Restart vim
+" and try again. If it sill doesnt work... the help page is at the bottom 
+" of this file.
+
+" Section: script init stuff {{{1
+if exists("loaded_nerd_comments")
+    finish
+endif
+let loaded_nerd_comments = 1
+
+" Section: tabSpace init {{{2
+" here we get a string that is the same length as a tabstop but with spaces
+" instead of a tab. Also, we store the number of spaces in a tab
+let s:tabSpace = ""
+let s:spacesPerTab = &tabstop
+while s:spacesPerTab > 0
+    let s:tabSpace = s:tabSpace . " "
+    let s:spacesPerTab = s:spacesPerTab - 1
+endwhile
+let s:spacesPerTab = &tabstop
+
+" Section: spaces init {{{2
+" Occasionally we need to grab a string of spaces so just make one here
+let s:spaces = ""
+while strlen(s:spaces) < 100
+    let s:spaces = s:spaces . "    "
+endwhile
+
+" Function: s:InitVariable() function {{{2
+" This function is used to initialise a given variable to a given value. The
+" variable is only initialised if it does not exist prior
+"
+" Args:
+"   -var: the name of the var to be initialised
+"   -value: the value to initialise var to
+"
+" Returns:
+"   1 if the var is set, 0 otherwise
+function s:InitVariable(var, value)
+    if !exists(a:var)
+        exec 'let ' . a:var . ' = ' . "'" . a:value . "'"
+        return 1
+    endif
+    return 0
+endfunction
+
+" Section: space string init{{{2
+" When putting spaces after the left delim and before the right we use
+" s:spaceStr for the space char. This way we can make it add anything after
+" the left and before the right by modifying this variable
+let s:spaceStr = ' '
+let s:lenSpaceStr = strlen(s:spaceStr)
+
+" Section: variable init calls {{{2
+call s:InitVariable("g:NERDAllowAnyVisualDelims", 1)
+call s:InitVariable("g:NERDBlockComIgnoreEmpty", 0)
+call s:InitVariable("g:NERDCommentWholeLinesInVMode", 0)
+call s:InitVariable("g:NERDCompactSexyComs", 0)
+call s:InitVariable("g:NERDDefaultNesting", 0)
+call s:InitVariable("g:NERDMenuMode", 3)
+call s:InitVariable("g:NERDLPlace", "[>")
+call s:InitVariable("g:NERDUsePlaceHolders", 1)
+call s:InitVariable("g:NERDRemoveAltComs", 1)
+call s:InitVariable("g:NERDRemoveExtraSpaces", 0)
+call s:InitVariable("g:NERDRPlace", "<]")
+call s:InitVariable("g:NERDShutUp", '0')
+call s:InitVariable("g:NERDSpaceDelims", 0)
+call s:InitVariable("g:NERDDelimiterRequests", 1)
+
+call s:InitVariable("g:NERDMapleader", ',c')
+
+call s:InitVariable("g:NERDAltComMap", g:NERDMapleader . 'a')
+call s:InitVariable("g:NERDAppendComMap", g:NERDMapleader . 'A')
+call s:InitVariable("g:NERDComAlignBothMap", g:NERDMapleader . 'b')
+call s:InitVariable("g:NERDComAlignLeftMap", g:NERDMapleader . 'l')
+call s:InitVariable("g:NERDComAlignRightMap", g:NERDMapleader . 'r')
+call s:InitVariable("g:NERDComInInsertMap", '<C-c>')
+call s:InitVariable("g:NERDComLineInvertMap", g:NERDMapleader . 'i')
+call s:InitVariable("g:NERDComLineMap", g:NERDMapleader . 'c')
+call s:InitVariable("g:NERDComLineNestMap", g:NERDMapleader . 'n')
+call s:InitVariable("g:NERDComLineSexyMap", g:NERDMapleader . 's')
+call s:InitVariable("g:NERDComLineToggleMap", g:NERDMapleader . '<space>')
+call s:InitVariable("g:NERDComLineMinimalMap", g:NERDMapleader . 'm')
+call s:InitVariable("g:NERDComLineYankMap", g:NERDMapleader . 'y')
+call s:InitVariable("g:NERDComToEOLMap", g:NERDMapleader . '$')
+call s:InitVariable("g:NERDPrependComMap", g:NERDMapleader . 'I')
+call s:InitVariable("g:NERDUncomLineMap", g:NERDMapleader . 'u')
+let s:NERDFileNameEscape="[]#*$%'\" ?`!&();<>\\"
+
+" Section: Comment mapping functions, autocommands and commands {{{1
+" ============================================================================
+" Section: Comment enabler autocommands {{{2
+" ============================================================================
+
+if !exists("nerd_autocmds_loaded")
+    let nerd_autocmds_loaded=1
+
+    augroup commentEnablers
+
+        "if the user enters a buffer or reads a buffer then we gotta set up
+        "the comment delimiters for that new filetype 
+        autocmd BufEnter,BufRead * :call s:SetUpForNewFiletype(&filetype)
+    augroup END
+
+endif
+
+
+" Function: s:SetUpForNewFiletype(filetype) function {{{2
+" This function is responsible for setting up buffer scoped variables for the 
+" given filetype.
+"
+" These variables include the comment delimiters for the given filetype and calls
+" MapDelimiters or MapDelimitersWithAlternative passing in these delimiters.
+"
+" Args:
+"   -filetype: the filetype to set delimiters for
+"
+function s:SetUpForNewFiletype(filetype)
+    "if we have already set the delimiters for this buffer then dont go thru
+    "it again
+    if exists("b:left") && b:left != ''
+        return
+    endif
+
+    let b:sexyComMarker = ''
+
+    "check the filetype against all known filetypes to see if we have
+    "hardcoded the comment delimiters to use 
+    if a:filetype == "" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "abaqus" 
+        call s:MapDelimiters('**', '')
+    elseif a:filetype == "abc" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "acedb" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "ada" 
+        call s:MapDelimitersWithAlternative('--','', '--  ', '')
+    elseif a:filetype == "ahdl" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "amiga" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "aml" 
+        call s:MapDelimiters('/*', '')
+    elseif a:filetype == "ampl" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "ant" 
+        call s:MapDelimiters('<!--','-->') 
+    elseif a:filetype == "apache" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "apachestyle" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "asm68k" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "asm" 
+        call s:MapDelimitersWithAlternative(';', '', '#', '')
+    elseif a:filetype == "asn" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "aspvbs" 
+        call s:MapDelimiters('''', '')
+    elseif a:filetype == "atlas" 
+        call s:MapDelimiters('C','$') 
+    elseif a:filetype == "autohotkey" 
+        call s:MapDelimiters(';','') 
+    elseif a:filetype == "autoit" 
+        call s:MapDelimiters(';','') 
+    elseif a:filetype == "automake" 
+        call s:MapDelimitersWithAlternative('#','', 'dnl ', '') 
+    elseif a:filetype == "ave" 
+        call s:MapDelimiters(''','') 
+    elseif a:filetype == "awk" 
+        call s:MapDelimiters('#','') 
+    elseif a:filetype == "basic" 
+        call s:MapDelimitersWithAlternative(''','', 'REM ', '')
+    elseif a:filetype == "b" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "bc" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "bdf" 
+        call s:MapDelimiters('COMMENT ', '')
+    elseif a:filetype == "bib" 
+        call s:MapDelimiters('%','') 
+    elseif a:filetype == "bindzone" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "bst" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "btm" 
+        call s:MapDelimiters('::', '')
+    elseif a:filetype == "caos" 
+        call s:MapDelimiters('*', '')
+    elseif a:filetype == "catalog" 
+        call s:MapDelimiters('--','--') 
+    elseif a:filetype == "c" 
+        call s:MapDelimitersWithAlternative('/*','*/', '//', '') 
+    elseif a:filetype == "cfg" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "cg" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "ch" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "changelog" 
+        call s:MapDelimiters('','')
+    elseif a:filetype == "cl" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "clean" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "clipper" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "cmake"
+        call s:MapDelimiters('#','')
+    elseif a:filetype == "conf" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "config" 
+        call s:MapDelimiters('dnl ', '')
+    elseif a:filetype == "context"
+        call s:MapDelimiters('%','')
+    elseif a:filetype == "cpp" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "crontab" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "cs" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "csc" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "csp" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "css" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "cterm" 
+        call s:MapDelimiters('*', '')
+    elseif a:filetype == "cupl" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "csv" 
+        call s:MapDelimiters('','')
+    elseif a:filetype == "cvs" 
+        call s:MapDelimiters('CVS:','')
+    elseif a:filetype == "dcl" 
+        call s:MapDelimiters('$!', '')
+    elseif a:filetype == "debchangelog" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "debcontrol" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "debsources" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "def" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "diff" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "django" 
+        call s:MapDelimitersWithAlternative('<!--','-->', '{#', '#}') 
+    elseif a:filetype == "docbk" 
+        call s:MapDelimiters('<!--', '-->')
+    elseif a:filetype == "dns" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "dosbatch" 
+        call s:MapDelimiters('REM ','')
+    elseif a:filetype == "dosini" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "dot" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "dracula" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "dsl" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "dtd" 
+        call s:MapDelimiters('<!--','-->') 
+    elseif a:filetype == "dtml" 
+        call s:MapDelimiters('<dtml-comment>','</dtml-comment>') 
+    elseif a:filetype == "dylan" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == 'ebuild'
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "ecd" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == 'eclass'
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "eiffel" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "elf" 
+        call s:MapDelimiters(''', '')
+    elseif a:filetype == "elmfilt" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "erlang" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "eruby" 
+        call s:MapDelimitersWithAlternative('<!--', '-->', '<%#', '%>')
+    elseif a:filetype == "eterm" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "expect" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "exports" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "fetchmail" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "fgl" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "focexec" 
+        call s:MapDelimiters('-*', '')
+    elseif a:filetype == "form" 
+        call s:MapDelimiters('*', '')
+    elseif a:filetype == "fortran" 
+        call s:MapDelimiters('!', '')
+    elseif a:filetype == "foxpro" 
+        call s:MapDelimiters('*', '')
+    elseif a:filetype == "fstab" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "fvwm" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "fx" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "gdb" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "gdmo" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "geek" 
+        call s:MapDelimiters('GEEK_COMMENT:', '')
+    elseif a:filetype == 'gentoo-package-keywords'
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == 'gentoo-package-mask' 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == 'gentoo-package-use' 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "gnuplot" 
+        call s:MapDelimiters('#','')
+    elseif a:filetype == "gtkrc" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "haskell" 
+        call s:MapDelimitersWithAlternative('--','', '{-', '-}') 
+    elseif a:filetype == "hb" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "h" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "help" 
+        call s:MapDelimiters('"','')
+    elseif a:filetype == "hercules" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "hog" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "html" 
+        call s:MapDelimitersWithAlternative('<!--','-->', '//', '') 
+    elseif a:filetype == "htmldjango" 
+        call s:MapDelimitersWithAlternative('<!--','-->', '{#', '#}') 
+    elseif a:filetype == "htmlos"
+        call s:MapDelimiters('#','/#') 
+    elseif a:filetype == "ia64" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "icon" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "idlang" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "idl" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "indent" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "inform" 
+        call s:MapDelimiters('!', '')
+    elseif a:filetype == "inittab" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "ishd" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "iss" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "ist" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "jam" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "java" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "javascript" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "jess" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "jgraph" 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "jproperties" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "jproperties" 
+        call s:MapDelimiters('#','')
+    elseif a:filetype == "jsp" 
+        call s:MapDelimiters('<%--', '--%>')
+    elseif a:filetype == "kconfig" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "kix" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "kscript" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "lace" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "lex" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "lftp" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "lifelines" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "lilo" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "lisp" 
+        call s:MapDelimitersWithAlternative(';','', '#|', '|#') 
+    elseif a:filetype == "lite" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "lotos" 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "lout" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "lprolog" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "lscript" 
+        call s:MapDelimiters("'", '')
+    elseif a:filetype == "lss" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "lua" 
+        call s:MapDelimitersWithAlternative('--','', '--[[', ']]') 
+    elseif a:filetype == "lynx" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "m4" 
+        call s:MapDelimiters('dnl ', '')
+    elseif a:filetype == "mail"
+        call s:MapDelimiters('> ','')
+    elseif a:filetype == "make" 
+        call s:MapDelimiters('#','') 
+    elseif a:filetype == "maple" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "masm" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "master" 
+        call s:MapDelimiters('$', '')
+    elseif a:filetype == "matlab" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "mel" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "mf" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "mib" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "mma" 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "model"
+        call s:MapDelimiters('$','$') 
+    elseif a:filetype =~ "moduala." 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "modula2" 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "modula3" 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "monk" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "mush" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "muttrc" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "named" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "nasm" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "nastran" 
+        call s:MapDelimiters('$', '')
+    elseif a:filetype == "natural" 
+        call s:MapDelimiters('/*', '')
+    elseif a:filetype == "ncf" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "netdict" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "netrw" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "nqc" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "nroff"
+        call s:MapDelimiters('\"', '')
+    elseif a:filetype == "nsis" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "ocaml" 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "occam" 
+        call s:MapDelimiters('--','') 
+    elseif a:filetype == "omlet" 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "omnimark" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "openroad" 
+        call s:MapDelimiters('//', '')
+    elseif a:filetype == "opl" 
+        call s:MapDelimiters("REM", "")
+    elseif a:filetype == "ora" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "otl" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "ox" 
+        call s:MapDelimiters('//', '')
+    elseif a:filetype == "pascal" 
+        call s:MapDelimitersWithAlternative('{','}', '(*', '*)')
+    elseif a:filetype == "passwd" 
+        call s:MapDelimitersWith('','')
+    elseif a:filetype == "pcap" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "pccts" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "perl" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "pfmain" 
+        call s:MapDelimiters('//', '')
+    elseif a:filetype == "php" 
+        call s:MapDelimitersWithAlternative('//','','/*', '*/')
+    elseif a:filetype == "phtml" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "pic" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "pike" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "pilrc" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "pine" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "plaintex"
+        call s:MapDelimiters('%','')
+    elseif a:filetype == "plm" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "plsql" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "po" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "postscr" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "pov" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "povini" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "ppd" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "ppwiz" 
+        call s:MapDelimiters(';;', '')
+    elseif a:filetype == "procmail" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "progress" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "prolog" 
+        call s:MapDelimitersWithAlternative('%','','/*','*/') 
+    elseif a:filetype == "psf" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "ptcap" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "python" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "python" 
+        call s:MapDelimiters('#','') 
+    elseif a:filetype == "qf" 
+        call s:MapDelimiters('','') 
+    elseif a:filetype == "radiance" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "ratpoison" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "r" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "rc" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "readline" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "rebol" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "registry" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "remind" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "rexx" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "robots" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "rpl" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "rtf" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "ruby" 
+        call s:MapDelimiters('#','') 
+    elseif a:filetype == "sa" 
+        call s:MapDelimiters('--','') 
+    elseif a:filetype == "samba" 
+        call s:MapDelimitersWithAlternative(';','', '#', '') 
+    elseif a:filetype == "sas" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "sather" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "scheme" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "scilab" 
+        call s:MapDelimiters('//', '')
+    elseif a:filetype == "screen" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "scsh" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "sdl" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "sed" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "selectbuf" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "sgml" 
+        call s:MapDelimiters('<!','>') 
+    elseif a:filetype == "sgmldecl" 
+        call s:MapDelimiters('--','--') 
+    elseif a:filetype == "sgmllnx" 
+        call s:MapDelimiters('<!--','-->') 
+    elseif a:filetype == "sicad" 
+        call s:MapDelimiters('*', '')
+    elseif a:filetype == "simula" 
+        call s:MapDelimitersWithAlternative('%', '', '--', '')
+    elseif a:filetype == "sinda" 
+        call s:MapDelimiters('$', '')
+    elseif a:filetype == "skill" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "slang" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "sl" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "slrnrc" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "sm" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "smarty" 
+        call s:MapDelimiters('{*', '*}')
+    elseif a:filetype == "smil" 
+        call s:MapDelimiters('<!','>') 
+    elseif a:filetype == "smith" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "sml" 
+        call s:MapDelimiters('(*','*)') 
+    elseif a:filetype == "snnsnet" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "snnspat" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "snnsres" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "snobol4" 
+        call s:MapDelimiters('*', '')
+    elseif a:filetype == "spec" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "specman" 
+        call s:MapDelimiters('//', '')
+    elseif a:filetype == "spice" 
+        call s:MapDelimiters('$', '')
+    elseif a:filetype == "sql" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "sqlforms" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "sqlj" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "sqr" 
+        call s:MapDelimiters('!', '')
+    elseif a:filetype == "squid" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "st" 
+        call s:MapDelimiters('"",''')
+    elseif a:filetype == "stp" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "strace" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "svn" 
+        call s:MapDelimiters('','')
+    elseif a:filetype == "systemverilog" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "tads" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "taglist" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "tags" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "tak" 
+        call s:MapDelimiters('$', '')
+    elseif a:filetype == "tasm" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "tcl" 
+        call s:MapDelimiters('#','') 
+    elseif a:filetype == "terminfo" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "tex" 
+        call s:MapDelimiters('%','') 
+    elseif a:filetype == "text" 
+        call s:MapDelimiters('','') 
+    elseif a:filetype == "plaintex" 
+        call s:MapDelimiters('%','') 
+    elseif a:filetype == "texinfo" 
+        call s:MapDelimiters("@c ", "")
+    elseif a:filetype == "texmf" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "tf" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "tidy" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "tli" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "trasys" 
+        call s:MapDelimiters("$", "")
+    elseif a:filetype == "tsalt" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "tsscl" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "tssgm" 
+        call s:MapDelimiters('comment = '',''') 
+    elseif a:filetype == "uc" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "uil" 
+        call s:MapDelimiters('!', '')
+    elseif a:filetype == "vb" 
+        call s:MapDelimiters("'","") 
+    elseif a:filetype == "verilog" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "verilog_systemverilog" 
+        call s:MapDelimitersWithAlternative('//','', '/*','*/')
+    elseif a:filetype == "vgrindefs" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "vhdl" 
+        call s:MapDelimiters('--', '')
+    elseif a:filetype == "vim" 
+        call s:MapDelimiters('"','') 
+    elseif a:filetype == "viminfo" 
+        call s:MapDelimiters('','') 
+    elseif a:filetype == "virata" 
+        call s:MapDelimiters('%', '')
+    elseif a:filetype == "vo_base" 
+        call s:MapDelimiters('', '')
+    elseif a:filetype == "vrml" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "vsejcl" 
+        call s:MapDelimiters('/*', '')
+    elseif a:filetype == "webmacro" 
+        call s:MapDelimiters('##', '')
+    elseif a:filetype == "wget" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "winbatch" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "wml" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype =~ "[^w]*sh" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "wvdial" 
+        call s:MapDelimiters(';', '')
+    elseif a:filetype == "xdefaults" 
+        call s:MapDelimiters('!', '')
+    elseif a:filetype == "xf86conf" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "xhtml" 
+        call s:MapDelimiters('<!--', '-->')
+    elseif a:filetype == "xkb" 
+        call s:MapDelimiters('//', '')
+    elseif a:filetype == "xmath" 
+        call s:MapDelimiters('#', '')
+    elseif a:filetype == "xml" 
+        call s:MapDelimiters('<!--','-->') 
+    elseif a:filetype == "xmodmap" 
+        call s:MapDelimiters('!', '')
+    elseif a:filetype == "xpm2" 
+        call s:MapDelimiters('!', '')
+    elseif a:filetype == "xpm" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "xslt" 
+        call s:MapDelimiters('<!--','-->') 
+    elseif a:filetype == "yacc" 
+        call s:MapDelimiters('/*','*/')
+    elseif a:filetype == "yaml" 
+        call s:MapDelimiters('#','')
+    elseif a:filetype == "z8a" 
+        call s:MapDelimiters(';', '')
+
+    elseif a:filetype == ""
+        call s:MapDelimitersWithAlternative("","", "", "") 
+
+        "we have not hardcoded the comment delimiters to use for this filetype so
+        "get them from &commentstring.
+    else
+        "print a disclaimer to the user :) 
+        if !g:NERDShutUp
+            call s:NerdEcho("Unknown filetype '".a:filetype."', setting delimiters by &commentstring.\nPleeeeease email the author of the NERD commenter with this filetype\nand its delimiters!", 0)
+        endif
+
+        "extract the delims from &commentstring 
+        let left= substitute(&commentstring, '\(.*\)%s.*', '\1', '')
+        let right= substitute(&commentstring, '.*%s\(.*\)', '\1', 'g')
+
+        call s:MapDelimiters(left,right)
+    endif
+endfunction
+
+" Function: s:MapDelimiters(left, right) function {{{2
+" This function is a wrapper for s:MapDelimiters(left, right, leftAlt, rightAlt, useAlt) and is called when there
+" is no alternative comment delimiters for the current filetype
+"
+" Args:
+"   -left: the left comment delimiter
+"   -right: the right comment delimiter
+function s:MapDelimiters(left, right)
+    call s:MapDelimitersWithAlternative(a:left, a:right, "", "")
+endfunction
+
+" Function: s:MapDelimitersWithAlternative(left, right, leftAlt, rightAlt) function {{{2
+" this function sets up the comment delimiter buffer variables
+"
+" Args:
+"   -left:  the string defining the comment start delimiter
+"   -right: the string defining the comment end delimiter
+"   -leftAlt:  the string for the alternative comment style defining the comment start delimiter
+"   -rightAlt: the string for the alternative comment style defining the comment end delimiter
+function s:MapDelimitersWithAlternative(left, right, leftAlt, rightAlt)
+    if !exists('g:NERD_' . &filetype . '_alt_style')
+        let b:left = a:left
+        let b:right = a:right
+        let b:leftAlt = a:leftAlt
+        let b:rightAlt = a:rightAlt
+    else
+        let b:left = a:leftAlt
+        let b:right = a:rightAlt
+        let b:leftAlt = a:left
+        let b:rightAlt = a:right
+    endif
+endfunction
+
+" Function: s:SwitchToAlternativeDelimiters(printMsgs) function {{{2
+" This function is used to swap the delimiters that are being used to the
+" alternative delimiters for that filetype. For example, if a c++ file is
+" being edited and // comments are being used, after this function is called
+" /**/ comments will be used.
+"
+" Args:
+"   -printMsgs: if this is 1 then a message is echoed to the user telling them
+"    if this function changed the delimiters or not 
+function s:SwitchToAlternativeDelimiters(printMsgs)
+    "if both of the alternative delimiters are empty then there is no
+    "alternative comment style so bail out 
+    if (b:leftAlt=="" && b:rightAlt=="")
+        if a:printMsgs 
+            call s:NerdEcho("Cannot use alternative delimiters, none are specified", 0)
+        endif
+        return 0
+    endif
+
+    "save the current delimiters 
+    let tempLeft = b:left
+    let tempRight = b:right
+
+    "swap current delimiters for alternative 
+    let b:left = b:leftAlt
+    let b:right = b:rightAlt
+
+    "set the previously current delimiters to be the new alternative ones 
+    let b:leftAlt = tempLeft
+    let b:rightAlt = tempRight
+
+    "tell the user what comment delimiters they are now using 
+    if a:printMsgs
+        let leftNoEsc = b:left
+        let rightNoEsc = b:right
+        call s:NerdEcho("Now using " . leftNoEsc . " " . rightNoEsc . " to delimit comments", 1)
+    endif
+
+    return 1
+endfunction
+
+" Section: Comment delimiter add/removal functions {{{1
+" ============================================================================
+" Function: s:AppendCommentToLine(){{{2
+" This function appends comment delimiters at the EOL and places the cursor in
+" position to start typing the comment
+function s:AppendCommentToLine()
+    let left = s:GetLeft(0,1,0)
+    let right = s:GetRight(0,1,0)
+
+    " get the len of the right delim
+    let lenRight = strlen(right) 
+
+    let isLineEmpty = strlen(getline(".")) == 0
+    let insOrApp = (isLineEmpty==1 ? 'i' : 'A')
+
+    "stick the delimiters down at the end of the line. We have to format the
+    "comment with spaces as appropriate 
+    execute ":normal " . insOrApp . (isLineEmpty ? '' : ' ') . left . right . " "
+
+    " if there is a right delimiter then we gotta move the cursor left
+    " by the len of the right delimiter so we insert between the delimiters
+    if lenRight > 0 
+        let leftMoveAmount = lenRight 
+        execute ":normal " . leftMoveAmount . "h"
+    endif
+    startinsert
+endfunction
+
+" Function: s:CommentBlock(top, bottom, lSide, rSide, forceNested ) {{{2
+" This function is used to comment out a region of code. This region is
+" specified as a bounding box by arguments to the function. Note that the
+" range keyword is specified for this function. This is because this function
+" cannot be applied implicitly to every line specified in visual mode
+"
+" Args:
+"   -top: the line number for the top line of code in the region
+"   -bottom: the line number for the bottom line of code in the region
+"   -lSide: the column number for the left most column in the region
+"   -rSide: the column number for the right most column in the region
+"   -forceNested: a flag indicating whether comments should be nested 
+function s:CommentBlock(top, bottom, lSide, rSide, forceNested ) 
+    " we need to create local copies of these arguments so we can modify them
+    let top = a:top
+    let bottom = a:bottom
+    let lSide = a:lSide
+    let rSide = a:rSide
+
+    "if the top or bottom line starts with tabs we have to adjust the left and
+    "right boundaries so that they are set as though the tabs were spaces 
+    let topline = getline(top)
+    let bottomline = getline(bottom)
+    if topline =~ '^\t\t*'  || bottomline =~ '^\t\t*' 
+        "find out how many tabs are in the top line and adjust the left
+        "boundary accordingly 
+        let numTabs = strlen(substitute(topline, '^\(\t*\).*$', '\1', "")) 
+        if lSide < numTabs
+            let lSide = s:spacesPerTab * lSide
+        else
+            let lSide = (lSide - numTabs) + (s:spacesPerTab * numTabs)
+        endif
+
+        "find out how many tabs are in the bottom line and adjust the right
+        "boundary accordingly 
+        let numTabs = strlen(substitute(bottomline, '^\(\t*\).*$', '\1', "")) 
+        let rSide = (rSide - numTabs) + (s:spacesPerTab * numTabs)
+    endif
+
+    "we must check that bottom IS actually below top, if it is not then we
+    "swap top and bottom. Similarly for left and right. 
+    if bottom < top
+        let temp = top
+        let top = bottom
+        let bottom = top
+    endif
+    if rSide < lSide
+        let temp = lSide
+        let lSide = rSide
+        let rSide = temp
+    endif
+
+    "if the current delimiters arent multipart then we will switch to the
+    "alternative delims (if THEY are) as the comment will be better and more
+    "accurate with multipart delims 
+    let didSwitchDelims = -1
+
+    "if the right delim isnt empty then we can use it for this comment
+    if b:right != '' || !g:NERDAllowAnyVisualDelims
+        let didSwitchDelims = 0
+        "if the alternative comment right delimiter isnt null then we can use the
+        "alternative right delims 
+    elseif b:rightAlt != ''
+        let didSwitchDelims = 1
+        call <sid>SwitchToAlternativeDelimiters(0)
+    endif
+
+
+    "get versions of left/right without the escape chars 
+    let leftNoEsc = b:left
+    let rightNoEsc = b:right
+
+    "we need the len of leftNoEsc soon 
+    let lenLeftNoEsc = strlen(leftNoEsc) 
+
+    "we need the len of rightNoEsc soon 
+    let lenRightNoEsc = strlen(rightNoEsc) 
+
+    "start the commenting from the top and keep commenting till we reach the
+    "bottom
+    let currentLine=top
+    while currentLine <= bottom
+
+        "check if we are allowed to comment this line 
+        if s:GetCanCommentLine(a:forceNested, currentLine)
+
+            "convert the leading tabs into spaces 
+            let theLine = getline(currentLine)
+            let lineHasLeadTabs = s:HasLeadingTab(theLine)
+            if lineHasLeadTabs
+                let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+            endif
+
+            "dont comment lines that begin after the right boundary of the
+            "block unless the user has specified to do so
+            if theLine !~ '^ \{' . rSide . '\}' || !g:NERDBlockComIgnoreEmpty
+
+                "lineLSide and lineRSide are used as indexes into theLine. They
+                "are used to point to index where the left and right
+                "delimiters will be placed on the current line. The position
+                "of the delimiters may be altered if the current left position
+                "is in the middle of a delimiter.
+                let lineLSide = lSide
+                let lineRSide = rSide
+
+                "If the left or right boundaries are inside an existing
+                "delimiter then adjust lineLSide and lineRSide appropriately so
+                "that they are just after/before these delimiters
+                let offset = s:GetIndxInSubstr(lSide-1, leftNoEsc, theLine)
+                if offset > 0
+                    let lineLSide = lSide + lenLeftNoEsc - offset
+                endif
+                let offset = s:GetIndxInSubstr(lSide-1, rightNoEsc, theLine)
+                if offset > 0
+                    let lineLSide = lSide - offset
+                endif
+
+                let offset = s:GetIndxInSubstr(rSide, rightNoEsc, theLine)
+                if offset > 0
+                    let lineRSide = rSide + lenRightNoEsc - offset
+                endif
+                let offset = s:GetIndxInSubstr(rSide, leftNoEsc, theLine)
+                if offset > 0
+                    let lineRSide = rSide + lenLeftNoEsc - offset
+                endif
+
+                let offset = s:GetIndxInSubstr(lSide-1, g:NERDLPlace, theLine)
+                if offset > 0
+                    let lineLSide = lSide + strlen(g:NERDLPlace) - offset
+                endif
+                let offset = s:GetIndxInSubstr(lSide-1, g:NERDRPlace, theLine)
+                if offset > 0
+                    let lineLSide = lSide -  offset
+                endif
+
+                let offset = s:GetIndxInSubstr(rSide, g:NERDRPlace, theLine)
+                if offset > 0
+                    let lineRSide = rSide + strlen(g:NERDRPlace) - offset
+                endif
+                let offset = s:GetIndxInSubstr(rSide, g:NERDLPlace, theLine)
+                if offset > 0
+                    let lineRSide = rSide + strlen(g:NERDLPlace) - offset
+                endif
+
+                if b:leftAlt != ""
+                    let leftANoEsc = b:leftAlt
+                    let rightANoEsc = b:rightAlt
+                    let lenRightANoEsc = strlen(rightANoEsc)
+                    let lenLeftANoEsc = strlen(leftANoEsc)
+
+                    let offset = s:GetIndxInSubstr(lSide-1, leftANoEsc, theLine)
+                    if offset > 0
+                        let lineLSide = lSide + lenLeftANoEsc - offset
+                    endif
+                    let offset = s:GetIndxInSubstr(lSide-1, rightANoEsc, theLine)
+                    if offset > 0
+                        let lineLSide = lSide - offset
+                    endif
+
+                    let offset = s:GetIndxInSubstr(rSide, rightANoEsc, theLine)
+                    if offset > 0
+                        let lineRSide = rSide + lenRightNoEsc - offset
+                    endif
+                    let offset = s:GetIndxInSubstr(rSide, leftANoEsc, theLine)
+                    if offset > 0
+                        let lineRSide = rSide + lenLeftANoEsc - offset
+                    endif
+                endif
+
+                "attempt to place the cursor in on the left of the boundary box,
+                "then check if we were successful, if not then we cant comment this
+                "line 
+                call setline(currentLine, theLine)
+                call cursor(currentLine, lineLSide)
+                if col(".") == lineLSide && line(".") == currentLine
+
+                    let leftSpaced = s:GetLeft(0,1,0)
+                    let rightSpaced = s:GetRight(0,1,0)
+
+                    "stick the left delimiter down 
+                    let theLine = strpart(theLine, 0, lineLSide-1) . leftSpaced . strpart(theLine, lineLSide-1)
+
+                    "attempt to go the right boundary to place the right
+                    "delimiter, if we cant go to the right boundary then the
+                    "comment delimiter will be placed on the EOL. 
+                    if rightNoEsc != ''
+                        call cursor(currentLine, lineRSide+strlen(leftSpaced))
+
+                        "stick the right delimiter down 
+                        let theLine = strpart(theLine, 0, lineRSide+strlen(leftSpaced)) . rightSpaced . strpart(theLine, lineRSide+strlen(rightSpaced))
+
+                        "get the first/last indexes of the delimiters and get
+                        "the string between them and call it searchStr
+                        let firstLeftDelim = s:FindDelimiterIndex(leftNoEsc, theLine)
+                        let lastRightDelim = s:GetLastIndexOfDelim(rightNoEsc, theLine)
+
+                        "if the user has placed somewhere so that
+                        "NERDCommenter doesnt recognise it as a comment
+                        "delimiter then dont try to use place-holders as we'd
+                        "probably just screw it up more
+                        if firstLeftDelim != -1 && lastRightDelim != -1
+                            let searchStr = strpart(theLine, 0, lastRightDelim)
+                            let searchStr = strpart(searchStr, firstLeftDelim+strlen(leftNoEsc))
+
+                            "replace the outter most delims in searchStr with
+                            "place-holders 
+                            let theLineWithPlaceHolders = s:ReplaceDelims(leftNoEsc, rightNoEsc, g:NERDLPlace, g:NERDRPlace, searchStr)
+
+                            "add the right delimiter onto the line 
+                            let theLine = strpart(theLine, 0, firstLeftDelim+strlen(leftNoEsc)) . theLineWithPlaceHolders . strpart(theLine, lastRightDelim)
+                        endif
+
+                    endif
+
+
+                endif
+            endif
+
+            "restore tabs if needed
+            if lineHasLeadTabs
+                let theLine = s:ConvertLeadingSpacesToTabs(theLine)
+            endif
+
+            call setline(currentLine, theLine)
+        endif
+
+
+        "move onto the next line 
+        let currentLine = currentLine + 1
+    endwhile
+
+    "if we switched delims then we gotta go back to what they were before 
+    if didSwitchDelims == 1
+        call s:SwitchToAlternativeDelimiters(0)
+    endif
+endfunction
+
+" Function: s:CommentLines(forceNested, alignLeft, alignRight, firstLine, lastLine) {{{2
+" This function comments a range of lines.
+"
+" Args:
+"   -forceNested: a flag indicating whether the called is requesting the comment
+"    to be nested if need be
+"   -alignRight/alignLeft: 0/1 if the comments delimiters should/shouldnt be
+"    aligned left/right
+"   -firstLine/lastLine: the top and bottom lines to comment
+function s:CommentLines(forceNested, alignLeft, alignRight, firstLine, lastLine) 
+    " we need to get the left and right indexes of the leftmost char in the
+    " block of of lines and the right most char so that we can do alignment of
+    " the delimiters if the user has specified
+    let leftAlignIndx = s:GetLeftMostIndx(a:forceNested, 0, a:firstLine, a:lastLine)
+    let rightAlignIndx = s:GetRightMostIndx(a:forceNested, 0, a:firstLine, a:lastLine)
+
+    " gotta add the length of the left delimiter onto the rightAlignIndx cos
+    " we'll be adding a left delim to the line
+    let rightAlignIndx = rightAlignIndx + strlen(s:GetLeft(0,1,0))
+
+    " now we actually comment the lines. Do it line by line 
+    let currentLine = a:firstLine
+    while currentLine <= a:lastLine
+
+        " get the next line, check commentability and convert spaces to tabs 
+        let theLine = getline(currentLine)
+        let lineHasLeadingTabs = s:HasLeadingTab(theLine)
+        let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+        if s:GetCanCommentLine(a:forceNested, currentLine) 
+            "if the user has specified forceNesting then we check to see if we
+            "need to switch delimiters for place-holders
+            if a:forceNested && g:NERDUsePlaceHolders
+                let theLine = s:SwapOutterMultiPartDelimsForPlaceHolders(theLine)
+            endif
+
+            " find out if the line is commented using normal delims and/or
+            " alternate ones 
+            let isCommented = s:IsCommented(b:left, b:right, theLine) || s:IsCommented(b:leftAlt, b:rightAlt, theLine)
+
+            " check if we can comment this line 
+            if !isCommented || g:NERDUsePlaceHolders || b:right==""
+                if a:alignLeft
+                    let theLine = s:AddLeftDelimAligned(b:left, theLine, leftAlignIndx)
+                else
+                    let theLine = s:AddLeftDelim(s:GetLeft(0,1,0), theLine)
+                endif
+                if a:alignRight
+                    let theLine = s:AddRightDelimAligned(b:right, theLine, rightAlignIndx)
+                else
+                    let theLine = s:AddRightDelim(s:GetRight(0,1,0), theLine)
+                endif
+            endif
+        endif
+
+        " restore leading tabs if appropriate 
+        if lineHasLeadingTabs
+            let theLine = s:ConvertLeadingSpacesToTabs(theLine)
+        endif
+
+        " we are done with this line 
+        call setline(currentLine, theLine)
+        let currentLine = currentLine + 1
+    endwhile
+
+endfunction
+
+" Function: s:CommentLinesMinimal(firstLine, lastLine) {{{2
+" This function comments a range of lines in a minimal style. I
+"
+" Args:
+"   -firstLine/lastLine: the top and bottom lines to comment
+function s:CommentLinesMinimal(firstLine, lastLine) 
+    "check that minimal comments can be done on this filetype 
+    if b:right == '' && b:rightAlt == ''
+        throw 'NERDCommenter.Delimiters exception: Minimal comments can only be used for filetypes that have multipart delimiters'
+    endif
+
+    "if we need to use place holders for the comment, make sure they are
+    "enabled for this filetype 
+    if !g:NERDUsePlaceHolders && s:DoesBlockHaveMultipartDelim(a:firstLine, a:lastLine)
+        throw 'NERDCommenter.Settings exception: Placeoholders are required but disabled.'
+    endif
+
+    "get the left and right delims to smack on 
+    let left = s:GetSexyComLeft(g:NERDSpaceDelims,0)
+    let right = s:GetSexyComRight(g:NERDSpaceDelims,0)
+
+    "make sure all multipart delims on the lines are replaced with
+    "placeholders to prevent illegal syntax 
+    let currentLine = a:firstLine
+    while(currentLine <= a:lastLine)
+        let theLine = getline(currentLine)
+        let theLine = s:ReplaceDelims(left, right, g:NERDLPlace, g:NERDRPlace, theLine)
+        call setline(currentLine, theLine)
+        let currentLine = currentLine + 1
+    endwhile
+
+    "add the delim to the top line 
+    let theLine = getline(a:firstLine)
+    let lineHasLeadingTabs = s:HasLeadingTab(theLine)
+    let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+    let theLine = s:AddLeftDelim(left, theLine)
+    if lineHasLeadingTabs
+        let theLine = s:ConvertLeadingSpacesToTabs(theLine)
+    endif
+    call setline(a:firstLine, theLine)
+
+    "add the delim to the bottom line 
+    let theLine = getline(a:lastLine)
+    let lineHasLeadingTabs = s:HasLeadingTab(theLine)
+    let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+    let theLine = s:AddRightDelim(right, theLine)
+    if lineHasLeadingTabs
+        let theLine = s:ConvertLeadingSpacesToTabs(theLine)
+    endif
+    call setline(a:lastLine, theLine)
+endfunction
+
+" Function: s:CommentLinesSexy(topline, bottomline) function {{{2
+" This function is used to comment lines in the 'Sexy' style. eg in c:
+" /*
+"  * This is a sexy comment
+"  */
+" Args:
+"   -topline: the line num of the top line in the sexy comment
+"   -bottomline: the line num of the bottom line in the sexy comment
+function s:CommentLinesSexy(topline, bottomline)
+    let left = s:GetSexyComLeft(0, 0)
+    let right = s:GetSexyComRight(0, 0)
+
+    "check if we can do a sexy comment with the available delimiters 
+    if left == -1 || right == -1
+        throw 'NERDCommenter.Delimiters exception: cannot perform sexy comments with available delimiters.'
+    endif
+
+    "make sure the lines arent already commented sexually
+    if !s:GetCanSexyCommentLines(a:topline, a:bottomline)
+        throw 'NERDCommenter.Nesting exception: cannot nest sexy comments'
+    endif
+
+
+    let sexyComMarker = s:GetSexyComMarker(0,0)
+    let sexyComMarkerSpaced = s:GetSexyComMarker(1,0)
+
+
+    " we jam the comment as far to the right as possible 
+    let leftAlignIndx = s:GetLeftMostIndx(1, 1, a:topline, a:bottomline)
+
+    "check if we should use the compact style i.e that the left/right
+    "delimiters should appear on the first and last lines of the code and not
+    "on separate lines above/below the first/last lines of code
+    if g:NERDCompactSexyComs
+        let spaceString = (g:NERDSpaceDelims ? s:spaceStr : '')
+
+        "comment the top line 
+        let theLine = getline(a:topline)
+        let lineHasTabs = s:HasLeadingTab(theLine)
+        if lineHasTabs
+            let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+        endif
+        let theLine = s:SwapOutterMultiPartDelimsForPlaceHolders(theLine)
+        let theLine = s:AddLeftDelimAligned(left . spaceString, theLine, leftAlignIndx)
+        if lineHasTabs
+            let theLine = s:ConvertLeadingSpacesToTabs(theLine)
+        endif
+        call setline(a:topline, theLine)
+
+        "comment the bottom line 
+        let theLine = getline(a:bottomline)
+        let lineHasTabs = s:HasLeadingTab(theLine)
+        if lineHasTabs
+            let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+        endif
+        let theLine = s:SwapOutterMultiPartDelimsForPlaceHolders(theLine)
+        let theLine = s:AddRightDelim(spaceString . right, theLine)
+        if lineHasTabs
+            let theLine = s:ConvertLeadingSpacesToTabs(theLine)
+        endif
+        call setline(a:bottomline, theLine)
+    else
+
+        " add the left delimiter one line above the lines that are to be commented 
+        call cursor(a:topline, 1) 
+        execute 'normal! O'
+        call setline(a:topline, strpart(s:spaces, 0, leftAlignIndx) . left )
+
+        " add the right delimiter after bottom line (we have to add 1 cos we moved
+        " the lines down when we added the left delim
+        call cursor(a:bottomline+1, 1) 
+        execute 'normal! o'
+        call setline(a:bottomline+2, strpart(s:spaces, 0, leftAlignIndx) . strpart(s:spaces, 0, strlen(left)-strlen(sexyComMarker)) . right )
+
+    endif
+
+    " go thru each line adding the sexyComMarker marker to the start of each
+    " line in the appropriate place to align them with the comment delims
+    let currentLine = a:topline+1
+    while currentLine <= a:bottomline + !g:NERDCompactSexyComs
+        " get the line and convert the tabs to spaces 
+        let theLine = getline(currentLine)
+        let lineHasTabs = s:HasLeadingTab(theLine)
+        if lineHasTabs
+            let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+        endif
+
+        let theLine = s:SwapOutterMultiPartDelimsForPlaceHolders(theLine)
+
+        " add the sexyComMarker 
+        let theLine = strpart(s:spaces, 0, leftAlignIndx) . strpart(s:spaces, 0, strlen(left)-strlen(sexyComMarker)) . sexyComMarkerSpaced . strpart(theLine, leftAlignIndx)
+
+        if lineHasTabs
+            let theLine = s:ConvertLeadingSpacesToTabs(theLine)
+        endif
+
+
+        " set the line and move onto the next one 
+        call setline(currentLine, theLine)
+        let currentLine = currentLine + 1
+    endwhile
+
+endfunction
+
+" Function: s:CommentLinesToggle(forceNested, firstLine, lastLine) {{{2
+" Applies "toggle" commenting to the given range of lines
+"
+" Args:
+"   -forceNested: a flag indicating whether the called is requesting the comment
+"    to be nested if need be
+"   -firstLine/lastLine: the top and bottom lines to comment
+function s:CommentLinesToggle(forceNested, firstLine, lastLine) 
+    " now we actually comment the lines. Do it line by line 
+    let currentLine = a:firstLine
+    while currentLine <= a:lastLine
+
+        " get the next line, check commentability and convert spaces to tabs 
+        let theLine = getline(currentLine)
+        let lineHasLeadingTabs = s:HasLeadingTab(theLine)
+        let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+        if s:GetCanToggleCommentLine(a:forceNested, currentLine) 
+
+            "if the user has specified forceNesting then we check to see if we
+            "need to switch delimiters for place-holders
+            if g:NERDUsePlaceHolders
+                let theLine = s:SwapOutterMultiPartDelimsForPlaceHolders(theLine)
+            endif
+
+            let theLine = s:AddLeftDelim(s:GetLeft(0, 1, 0), theLine)
+            let theLine = s:AddRightDelim(s:GetRight(0, 1, 0), theLine)
+        endif
+
+        " restore leading tabs if appropriate 
+        if lineHasLeadingTabs
+            let theLine = s:ConvertLeadingSpacesToTabs(theLine)
+        endif
+
+        " we are done with this line 
+        call setline(currentLine, theLine)
+        let currentLine = currentLine + 1
+    endwhile
+
+endfunction
+
+" Function: s:CommentRegion(topline, topCol, bottomLine, bottomCol) function {{{2
+" This function is designed to comment chunks of text selected in visual mode.
+" It will comment exactly the text that they have selected.
+" Args:
+"   -topLine: the line num of the top line in the sexy comment
+"   -topCol: top left col for this comment
+"   -bottomline: the line num of the bottom line in the sexy comment
+"   -bottomCol: the bottom right col for this comment
+"   -forceNested: whether the caller wants comments to be nested if the
+"    line(s) are already commented
+function s:CommentRegion(topLine, topCol, bottomLine, bottomCol, forceNested) 
+    "we may need to switch to the alt delims if the current ones arent
+    "multi-part.
+    let didSwitchDelims = -1
+
+    "if the right delim isnt empty then we can use it for this comment
+    if b:right != '' || !g:NERDAllowAnyVisualDelims
+        let didSwitchDelims = 0
+        "if the alternative comment right delimiter isnt null then we can use the
+        "alternative right delims 
+    elseif b:rightAlt != ''
+        let didSwitchDelims = 1
+        call <sid>SwitchToAlternativeDelimiters(0)
+    endif
+
+    "if there is only one line in the comment then just do it 
+    if a:topLine == a:bottomLine
+        call s:CommentBlock(a:topLine, a:bottomLine, a:topCol, a:bottomCol, a:forceNested)
+
+    "there are multiple lines in the comment 
+    else
+        "comment the top line
+        call s:CommentBlock(a:topLine, a:topLine, a:topCol, strlen(getline(a:topLine)), a:forceNested)
+        "comment out all the lines in the middle of the comment 
+        let topOfRange = a:topLine+1
+        let bottomOfRange = a:bottomLine-1
+        if topOfRange <= bottomOfRange
+            call s:CommentLines(a:forceNested, 0, 0, topOfRange, bottomOfRange)
+        endif
+
+        "comment the bottom line 
+        let bottom = getline(a:bottomLine)
+        let numLeadingSpacesTabs = strlen(substitute(bottom, '^\([ \t]*\).*$', '\1', ''))
+        call s:CommentBlock(a:bottomLine, a:bottomLine, numLeadingSpacesTabs+1, a:bottomCol, a:forceNested)
+
+    endif
+
+    "stick the cursor back on the char it was on before the comment
+    call cursor(a:topLine, a:topCol + strlen(b:left) + g:NERDSpaceDelims)
+
+    "if we switched delims then we gotta go back to what they were before 
+    if didSwitchDelims == 1
+        call s:SwitchToAlternativeDelimiters(0)
+    endif
+
+
+endfunction
+
+
+" Function: s:InvertComment(firstLine, lastLine) function {{{2
+" Inverts the comments on the lines between and including the given line
+" numbers i.e all commented lines are uncommented and vice versa
+" Args:
+"   -firstLine: the top of the range of lines to be inverted
+"   -lastLine: the bottom of the range of lines to be inverted
+function s:InvertComment(firstLine, lastLine) 
+
+    " go thru all lines in the given range 
+    let currentLine = a:firstLine
+    while currentLine <= a:lastLine
+        let theLine = getline(currentLine)
+
+        let sexyComBounds = s:FindBoundingLinesOfSexyCom(currentLine) 
+
+        " if the line is commented normally, uncomment it 
+        if s:IsCommentedFromStartOfLine(b:left, theLine) || s:IsCommentedFromStartOfLine(b:leftAlt, theLine)
+            call s:UncommentLines(1, currentLine, currentLine)
+            let currentLine = currentLine + 1
+
+        " check if the line is commented sexually 
+        elseif sexyComBounds != -1
+            let topBound = substitute(sexyComBounds, '\(.*\),.*', '\1', '')
+            let bottomBound = substitute(sexyComBounds, '.*,\(.*\)', '\1', '')
+            let numLinesBeforeSexyComRemoved = s:GetNumLinesInBuf()
+            call s:UncommentLinesSexy(topBound, bottomBound)
+
+            "move to the line after last line of the sexy comment
+            let numLinesAfterSexyComRemoved = s:GetNumLinesInBuf()
+            let currentLine = bottomBound - (numLinesBeforeSexyComRemoved - numLinesAfterSexyComRemoved) + 1
+
+        " the line isnt commented 
+        else
+            call s:CommentLinesToggle(1, currentLine, currentLine)
+            let currentLine = currentLine + 1
+        endif
+
+    endwhile
+endfunction
+
+" Function: NERDComment(isVisual, alignLeft, alignRight, type) function {{{2
+" This function is a Wrapper for the main commenting functions
+"
+" Args:
+"   -isVisual: a flag indicating whether the comment is requested in visual
+"    mode or not
+"   -type: the type of commenting requested. Can be 'sexy', 'invert',
+"    'minimal', 'toggle', 'alignLeft', 'alignRight', 'alignBoth', 'norm',
+"    'nested', 'toEOL', 'prepend', 'append', 'insert', 'uncomment'
+function! NERDComment(isVisual, type) 
+    " we want case sensitivity when commenting 
+    let prevIgnoreCase = &ignorecase
+    set noignorecase
+
+    if a:isVisual
+        let firstLine = line("'<")
+        let lastLine = line("'>")
+        let firstCol = col("'<")
+        let lastCol = col("'>")
+    else
+        let firstLine = line(".")
+        let lastLine = firstLine
+    endif
+
+    let forceNested = (a:type == 'nested' || g:NERDDefaultNesting)
+
+    if a:type == 'norm' || a:type == 'nested'
+        if a:isVisual && visualmode() == ""
+            call s:CommentBlock(firstLine, lastLine, firstCol, lastCol, forceNested)
+        elseif a:isVisual && visualmode() == "v" && (g:NERDCommentWholeLinesInVMode==0 || (g:NERDCommentWholeLinesInVMode==2 && s:HasMultipartDelims()))
+            call s:CommentRegion(firstLine, firstCol, lastLine, lastCol, forceNested)
+        else
+            call s:CommentLines(forceNested, 0, 0, firstLine, lastLine)
+        endif
+
+    elseif a:type == 'alignLeft' || a:type == 'alignRight' || a:type == 'alignBoth'
+        let alignLeft = (a:type == 'alignLeft' || a:type == 'alignBoth')
+        let alignRight = (a:type == 'alignRight' || a:type == 'alignBoth')
+        call s:CommentLines(forceNested, alignLeft, alignRight, firstLine, lastLine)
+
+    elseif a:type == 'invert'
+        call s:InvertComment(firstLine, lastLine)
+
+    elseif a:type == 'sexy'
+        try
+            call s:CommentLinesSexy(firstLine, lastLine)
+        catch /NERDCommenter.Delimiters/
+            call s:NerdEcho("Sexy comments cannot be done with the available delimiters", 0)
+        catch /NERDCommenter.Nesting/
+            call s:NerdEcho("Sexy comment aborted. Nested sexy cannot be nested", 0)
+        endtry
+
+    elseif a:type == 'toggle'
+        let theLine = getline(firstLine)
+
+        if s:FindBoundingLinesOfSexyCom(firstLine)!=-1 || s:IsCommentedFromStartOfLine(b:left, theLine) || s:IsCommentedFromStartOfLine(b:leftAlt, theLine)
+            call s:UncommentLines(1, firstLine, lastLine)
+        else
+            call s:CommentLinesToggle(forceNested, firstLine, lastLine)
+        endif
+
+    elseif a:type == 'minimal'
+        try
+            call s:CommentLinesMinimal(firstLine, lastLine)
+        catch /NERDCommenter.Delimiters/
+            call s:NerdEcho("Minimal comments can only be used for filetypes that have multipart delimiters.", 0)
+        catch /NERDCommenter.Settings/
+            call s:NerdEcho("Place holders are required but disabled.", 0)
+        endtry
+
+    elseif a:type == 'toEOL'
+        call s:SaveScreenState()
+        call s:CommentBlock(firstLine, firstLine, col("."), col("$")-1, 1)
+        call s:RestoreScreenState()
+
+    elseif a:type == 'prepend'
+        call s:PrependCommentToLine()
+
+    elseif a:type == 'append'
+        call s:AppendCommentToLine()
+
+    elseif a:type == 'insert'
+        call s:PlaceDelimitersAndInsBetween()
+
+    elseif a:type == 'uncomment'
+        call s:UncommentLines(0, firstLine, lastLine)
+    endif
+
+    let &ignorecase = prevIgnoreCase
+endfunction
+
+" Function: s:PlaceDelimitersAndInsBetween() function {{{2
+" This is function is called to place comment delimiters down and place the
+" cursor between them
+function s:PlaceDelimitersAndInsBetween()
+    " get the left and right delimiters without any escape chars in them 
+    let left = s:GetLeft(0, 1, 0)
+    let right = s:GetRight(0, 1, 0)
+
+    let theLine = getline(".")
+    let lineHasLeadTabs = s:HasLeadingTab(theLine) || (theLine =~ '^ *$' && !&expandtab)
+
+    "convert tabs to spaces and adjust the cursors column to take this into
+    "account
+    let untabbedCol = s:GetUntabbedCol(theLine, col("."))
+    call setline(line("."), s:ConvertLeadingTabsToSpaces(theLine))
+    call cursor(line("."), untabbedCol)
+
+    " get the len of the right delim
+    let lenRight = strlen(right) 
+
+    let isDelimOnEOL = col(".") >= strlen(getline("."))
+
+    " if the cursor is in the first col then we gotta insert rather than
+    " append the comment delimiters here  
+    let insOrApp = (col(".")==1 ? 'i' : 'a')
+
+    " place the delimiters down. We do it differently depending on whether
+    " there is a left AND right delimiter 
+    if lenRight > 0 
+        execute ":normal " . insOrApp . left . right 
+        execute ":normal " . lenRight . "h"
+    else
+        execute ":normal " . insOrApp . left 
+
+        " if we are tacking the delim on the EOL then we gotta add a space
+        " after it cos when we go out of insert mode the cursor will move back
+        " one and the user wont be in position to type the comment.
+        if isDelimOnEOL
+            execute 'normal a '
+        endif
+    endif
+    normal l
+
+    "if needed convert spaces back to tabs and adjust the cursors col
+    "accordingly 
+    if lineHasLeadTabs
+        let tabbedCol = s:GetTabbedCol(getline("."), col("."))
+        call setline(line("."), s:ConvertLeadingSpacesToTabs(getline(".")))
+        call cursor(line("."), tabbedCol)
+    endif
+
+    startinsert
+endfunction
+
+" Function: s:PrependCommentToLine(){{{2
+" This function prepends comment delimiters to the start of line and places
+" the cursor in position to start typing the comment
+function s:PrependCommentToLine()
+    " get the left and right delimiters without any escape chars in them 
+    let left = s:GetLeft(0, 1, 0)
+    let right = s:GetRight(0, 1, 0)
+
+    " get the len of the right delim
+    let lenRight = strlen(right) 
+
+
+    "if the line is empty then we need to know about this later on
+    let isLineEmpty = strlen(getline(".")) == 0
+
+    "stick the delimiters down at the start of the line. We have to format the
+    "comment with spaces as appropriate 
+    if lenRight > 0
+        execute ":normal I" . left . right 
+    else
+        execute ":normal I" . left 
+    endif
+
+    " if there is a right delimiter then we gotta move the cursor left
+    " by the len of the right delimiter so we insert between the delimiters
+    if lenRight > 0 
+        let leftMoveAmount = lenRight
+        execute ":normal " . leftMoveAmount . "h"
+    endif
+    normal l
+
+    "if the line was empty then we gotta add an extra space on the end because
+    "the cursor will move back one more at the end of the last "execute"
+    "command
+    if isLineEmpty && lenRight == 0
+        execute ":normal a "
+    endif
+
+    startinsert
+endfunction
+" Function: s:RemoveDelimiters(left, right, line) {{{2
+" this function is called to remove the first left comment delimiter and the
+" last right delimiter of the given line. 
+"
+" The args left and right must be strings. If there is no right delimiter (as
+" is the case for e.g vim file comments) them the arg right should be ""
+"
+" Args:
+"   -left: the left comment delimiter
+"   -right: the right comment delimiter
+"   -line: the line to remove the delimiters from
+function s:RemoveDelimiters(left, right, line)
+
+    "get the left and right delimiters without the esc chars. Also, get their
+    "lengths
+    let l:left = a:left
+    let l:right = a:right
+    let lenLeft = strlen(left)
+    let lenRight = strlen(right)
+
+    let delimsSpaced = (g:NERDSpaceDelims || g:NERDRemoveExtraSpaces)
+
+    let line = a:line
+
+    "look for the left delimiter, if we find it, remove it. 
+    let leftIndx = s:FindDelimiterIndex(a:left, line)
+    if leftIndx != -1
+        let line = strpart(line, 0, leftIndx) . strpart(line, leftIndx+lenLeft)
+
+        "if the user has specified that there is a space after the left delim
+        "then check for the space and remove it if it is there
+        if delimsSpaced && strpart(line, leftIndx, s:lenSpaceStr) == s:spaceStr
+            let line = strpart(line, 0, leftIndx) . strpart(line, leftIndx+s:lenSpaceStr)
+        endif
+    endif
+
+    "look for the right delimiter, if we find it, remove it 
+    let rightIndx = s:FindDelimiterIndex(a:right, line)
+    if rightIndx != -1
+        let line = strpart(line, 0, rightIndx) . strpart(line, rightIndx+lenRight)
+
+        "if the user has specified that there is a space before the right delim
+        "then check for the space and remove it if it is there
+        if delimsSpaced && strpart(line, rightIndx-s:lenSpaceStr, s:lenSpaceStr) == s:spaceStr && right != ''
+            let line = strpart(line, 0, rightIndx-s:lenSpaceStr) . strpart(line, rightIndx)
+        endif
+    endif
+
+    return line
+endfunction
+
+" Function: s:UncommentLines(onlyWholeLineComs, topLine, bottomLine) {{{2
+" This function uncomments the given lines
+"
+" Args:
+" onlyWholeLineComs: should be 1 for toggle style uncommenting
+" topLine: the top line of the visual selection to uncomment
+" bottomLine: the bottom line of the visual selection to uncomment
+function s:UncommentLines(onlyWholeLineComs, topLine, bottomLine) 
+    "make local copies of a:firstline and a:lastline and, if need be, swap
+    "them around if the top line is below the bottom
+    let l:firstline = a:topLine
+    let l:lastline = a:bottomLine
+    if firstline > lastline
+        let firstline = lastline
+        let lastline = a:topLine
+    endif
+
+    "go thru each line uncommenting each line removing sexy comments
+    let currentLine = firstline
+    while currentLine <= lastline
+
+        "check the current line to see if it is part of a sexy comment 
+        let sexyComBounds = s:FindBoundingLinesOfSexyCom(currentLine)
+        if sexyComBounds != -1
+
+            "we need to store the num lines in the buf before the comment is
+            "removed so we know how many lines were removed when the sexy com
+            "was removed
+            let numLinesBeforeSexyComRemoved = s:GetNumLinesInBuf()
+
+            "extract the top/bottom lines of the sexy comment and call the
+            "appropriate function to remove the comment  
+            let topBound = substitute(sexyComBounds, '\(.*\),.*', '\1', '')
+            let bottomBound = substitute(sexyComBounds, '.*,\(.*\)', '\1', '')
+            call s:UncommentLinesSexy(topBound, bottomBound)
+
+            "move to the line after last line of the sexy comment
+            let numLinesAfterSexyComRemoved = s:GetNumLinesInBuf()
+            let numLinesRemoved = numLinesBeforeSexyComRemoved - numLinesAfterSexyComRemoved
+            let currentLine = bottomBound - numLinesRemoved + 1
+            let lastline = lastline - numLinesRemoved
+
+        "no sexy com was detected so uncomment the line as normal 
+        else
+            let theLine = getline(currentLine)
+            if a:onlyWholeLineComs && (s:IsCommentedFromStartOfLine(b:left, theLine) || s:IsCommentedFromStartOfLine(b:leftAlt, theLine))
+                call s:UncommentLinesNormal(currentLine, currentLine)
+            elseif !a:onlyWholeLineComs
+                call s:UncommentLinesNormal(currentLine, currentLine)
+            endif
+            let currentLine = currentLine + 1
+        endif
+    endwhile
+
+endfunction
+
+" Function: s:UncommentLinesSexy(topline, bottomline) {{{2
+" This function removes all the comment characters associated with the sexy
+" comment spanning the given lines
+" Args:
+"   -topline/bottomline: the top/bottom lines of the sexy comment
+function s:UncommentLinesSexy(topline, bottomline)
+    let left = s:GetSexyComLeft(0,1)
+    let right = s:GetSexyComRight(0,1)
+
+
+    "check if it is even possible for sexy comments to exist with the
+    "available delimiters 
+    if left == -1 || right == -1
+        throw 'NERDCommenter.Delimiters exception: cannot uncomment sexy comments with available delimiters.'
+    endif
+
+    let leftUnEsc = s:GetSexyComLeft(0,0)
+    let rightUnEsc = s:GetSexyComRight(0,0)
+
+    let sexyComMarker = s:GetSexyComMarker(0, 1)
+    let sexyComMarkerUnEsc = s:GetSexyComMarker(0, 0)
+
+    "the markerOffset is how far right we need to move the sexyComMarker to
+    "line it up with the end of the left delim
+    let markerOffset = strlen(leftUnEsc)-strlen(sexyComMarkerUnEsc)
+
+    " go thru the intermediate lines of the sexy comment and remove the
+    " sexy comment markers (eg the '*'s on the start of line in a c sexy
+    " comment) 
+    let currentLine = a:topline+1
+    while currentLine < a:bottomline
+        let theLine = getline(currentLine)
+
+        " remove the sexy comment marker from the line. We also remove the
+        " space after it if there is one and if appropriate options are set
+        let sexyComMarkerIndx = stridx(theLine, sexyComMarkerUnEsc)
+        if strpart(theLine, sexyComMarkerIndx+strlen(sexyComMarkerUnEsc), s:lenSpaceStr) == s:spaceStr  && g:NERDSpaceDelims
+            let theLine = strpart(theLine, 0, sexyComMarkerIndx - markerOffset) . strpart(theLine, sexyComMarkerIndx+strlen(sexyComMarkerUnEsc)+s:lenSpaceStr)
+        else
+            let theLine = strpart(theLine, 0, sexyComMarkerIndx - markerOffset) . strpart(theLine, sexyComMarkerIndx+strlen(sexyComMarkerUnEsc))
+        endif
+
+        let theLine = s:SwapOutterPlaceHoldersForMultiPartDelims(theLine)
+
+        " move onto the next line 
+        call setline(currentLine, theLine)
+        let currentLine = currentLine + 1
+    endwhile
+
+    " gotta make a copy of a:bottomline cos we modify the position of the
+    " last line  it if we remove the topline 
+    let bottomline = a:bottomline
+
+    " get the first line so we can remove the left delim from it 
+    let theLine = getline(a:topline)
+
+    " if the first line contains only the left delim then just delete it 
+    if theLine =~ '^[ \t]*' . left . '[ \t]*$' && !g:NERDCompactSexyComs
+        call cursor(a:topline, 1)
+        normal dd
+        let bottomline = bottomline - 1
+
+    " topline contains more than just the left delim 
+    else
+
+        " remove the delim. If there is a space after it
+        " then remove this too if appropriate
+        let delimIndx = stridx(theLine, leftUnEsc)
+        if strpart(theLine, delimIndx+strlen(leftUnEsc), s:lenSpaceStr) == s:spaceStr && g:NERDSpaceDelims
+            let theLine = strpart(theLine, 0, delimIndx) . strpart(theLine, delimIndx+strlen(leftUnEsc)+s:lenSpaceStr)
+        else
+            let theLine = strpart(theLine, 0, delimIndx) . strpart(theLine, delimIndx+strlen(leftUnEsc))
+        endif
+        let theLine = s:SwapOutterPlaceHoldersForMultiPartDelims(theLine)
+        call setline(a:topline, theLine)
+    endif
+
+    " get the last line so we can remove the right delim
+    let theLine = getline(bottomline)
+
+    " if the bottomline contains only the right delim then just delete it 
+    if theLine =~ '^[ \t]*' . right . '[ \t]*$'
+        call cursor(bottomline, 1)
+        normal dd
+
+    " the last line contains more than the right delim  
+    else
+        " remove the right delim. If there is a space after it and
+        " if the appropriate options are set then remove this too.
+        let delimIndx = s:GetLastIndexOfDelim(rightUnEsc, theLine)
+        if strpart(theLine, delimIndx+strlen(leftUnEsc), s:lenSpaceStr) == s:spaceStr  && g:NERDSpaceDelims
+            let theLine = strpart(theLine, 0, delimIndx) . strpart(theLine, delimIndx+strlen(rightUnEsc)+s:lenSpaceStr)
+        else
+            let theLine = strpart(theLine, 0, delimIndx) . strpart(theLine, delimIndx+strlen(rightUnEsc))
+        endif
+
+        " if the last line also starts with a sexy comment marker then we
+        " remove this as well
+        if theLine =~ '^[ \t]*' . sexyComMarker
+
+            " remove the sexyComMarker. If there is a space after it then
+            " remove that too
+            let sexyComMarkerIndx = stridx(theLine, sexyComMarkerUnEsc)
+            if strpart(theLine, sexyComMarkerIndx+strlen(sexyComMarkerUnEsc), s:lenSpaceStr) == s:spaceStr  && g:NERDSpaceDelims
+                let theLine = strpart(theLine, 0, sexyComMarkerIndx - markerOffset ) . strpart(theLine, sexyComMarkerIndx+strlen(sexyComMarkerUnEsc)+s:lenSpaceStr)
+            else
+                let theLine = strpart(theLine, 0, sexyComMarkerIndx - markerOffset ) . strpart(theLine, sexyComMarkerIndx+strlen(sexyComMarkerUnEsc))
+            endif
+        endif
+
+        let theLine = s:SwapOutterPlaceHoldersForMultiPartDelims(theLine)
+        call setline(bottomline, theLine)
+    endif
+endfunction
+
+" Function: s:UncommentLineNormal(line) {{{2
+" uncomments the given line and returns the result
+" Args:
+"   -line: the line to uncomment
+function s:UncommentLineNormal(line)
+    let line = a:line
+
+    "get the comment status on the line so we know how it is commented 
+    let lineCommentStatus =  s:IsCommentedOuttermost(b:leftAlt, b:rightAlt, b:left, b:right, line) 
+
+    "it is commented with b:left and b:right so remove these delims
+    if lineCommentStatus == 1 
+        let line = s:RemoveDelimiters(b:leftAlt, b:rightAlt, line)
+
+    "it is commented with b:leftAlt and b:rightAlt so remove these delims
+    elseif lineCommentStatus == 2 && g:NERDRemoveAltComs
+        let line = s:RemoveDelimiters(b:left, b:right, line)
+
+    "it is not properly commented with any delims so we check if it has
+    "any random left or right delims on it and remove the outtermost ones 
+    else
+        "get the positions of all delim types on the line 
+        let indxLeft = s:FindDelimiterIndex(b:left, line)
+        let indxLeftAlt = s:FindDelimiterIndex(b:leftAlt, line)
+        let indxRight = s:FindDelimiterIndex(b:right, line)
+        let indxRightAlt = s:FindDelimiterIndex(b:rightAlt, line)
+
+        "remove the outter most left comment delim 
+        if indxLeft != -1 && (indxLeft < indxLeftAlt || indxLeftAlt == -1)
+            let line = s:ReplaceLeftMostDelim(b:left, '', line)
+        elseif indxLeftAlt != -1
+            let line = s:ReplaceLeftMostDelim(b:leftAlt, '', line)
+        endif
+
+        "remove the outter most right comment delim 
+        if indxRight != -1 && (indxRight < indxRightAlt || indxRightAlt == -1)
+            let line = s:ReplaceRightMostDelim(b:right, '', line)
+        elseif indxRightAlt != -1
+            let line = s:ReplaceRightMostDelim(b:rightAlt, '', line)
+        endif
+    endif
+
+
+    let indxLeft = s:FindDelimiterIndex(b:left, line)
+    let indxLeftAlt = s:FindDelimiterIndex(b:leftAlt, line)
+    let indxLeftPlace = s:FindDelimiterIndex(g:NERDLPlace, line)
+
+    let indxRightPlace = s:FindDelimiterIndex(g:NERDRPlace, line)
+    let indxRightAlt = s:FindDelimiterIndex(b:rightAlt, line)
+    let indxRightPlace = s:FindDelimiterIndex(g:NERDRPlace, line)
+
+    let right = b:right
+    let left = b:left
+    if b:right == ""
+        let right = b:rightAlt
+        let left = b:leftAlt
+    endif
+
+
+    "if there are place-holders on the line then we check to see if they are
+    "the outtermost delimiters on the line. If so then we replace them with
+    "real delimiters
+    if indxLeftPlace != -1 
+        if (indxLeftPlace < indxLeft || indxLeft==-1) && (indxLeftPlace < indxLeftAlt || indxLeftAlt==-1)
+            let line = s:ReplaceDelims(g:NERDLPlace, g:NERDRPlace, left, right, line)
+        endif
+    elseif indxRightPlace != -1
+        if (indxRightPlace < indxLeft || indxLeft==-1) && (indxLeftPlace < indxLeftAlt || indxLeftAlt==-1)
+            let line = s:ReplaceDelims(g:NERDLPlace, g:NERDRPlace, left, right, line)
+        endif
+
+    endif
+
+
+    return line
+endfunction
+
+" Function: s:UncommentLinesNormal(topline, bottomline) {{{2
+" This function is called to uncomment lines that arent a sexy comment
+" Args:
+"   -topline/bottomline: the top/bottom line numbers of the comment
+function s:UncommentLinesNormal(topline, bottomline)
+    let currentLine = a:topline
+    while currentLine <= a:bottomline
+        let line = getline(currentLine)
+        call setline(currentLine, s:UncommentLineNormal(line))
+        let currentLine = currentLine + 1
+    endwhile
+endfunction
+
+
+" Section: Other helper functions {{{1
+" ============================================================================
+
+" Function: s:AddLeftDelim(delim, theLine) {{{2
+" Args:
+function s:AddLeftDelim(delim, theLine)
+    return substitute(a:theLine, '^\([ \t]*\)', '\1' . a:delim, '')
+endfunction
+
+" Function: s:AddLeftDelimAligned(delim, theLine) {{{2
+" Args:
+function s:AddLeftDelimAligned(delim, theLine, alignIndx)
+
+    "if the line is not long enough then bung some extra spaces on the front
+    "so we can align the delim properly 
+    let theLine = a:theLine
+    if strlen(theLine) < a:alignIndx
+        let theLine = strpart(s:spaces, 0, a:alignIndx - strlen(theLine))
+    endif
+
+    return strpart(theLine, 0, a:alignIndx) . a:delim . strpart(theLine, a:alignIndx)
+endfunction
+
+" Function: s:AddRightDelim(delim, theLine) {{{2
+" Args:
+function s:AddRightDelim(delim, theLine)
+    if a:delim == ''
+        return a:theLine
+    else
+        return substitute(a:theLine, '$', a:delim, '')
+    endif
+endfunction
+
+" Function: s:AddRightDelimAligned(delim, theLine, alignIndx) {{{2
+" Args:
+function s:AddRightDelimAligned(delim, theLine, alignIndx)
+    if a:delim == ""
+        return a:theLine
+    else
+
+        " when we align the right delim we are just adding spaces
+        " so we get a string containing the needed spaces (it
+        " could be empty)
+        let extraSpaces = ''
+        let extraSpaces = strpart(s:spaces, 0, a:alignIndx-strlen(a:theLine))
+
+        " add the right delim 
+        return substitute(a:theLine, '$', extraSpaces . a:delim, '')
+    endif
+endfunction
+
+" Function: s:ConvertLeadingSpacesToTabs(line) {{{2
+" This function takes a line and converts all leading tabs on that line into
+" spaces
+"
+" Args:
+"   -line: the line whose leading tabs will be converted
+function s:ConvertLeadingSpacesToTabs(line)
+    let toReturn  = a:line
+    while toReturn =~ '^\t*' . s:tabSpace . '\(.*\)$'
+        let toReturn = substitute(toReturn, '^\(\t*\)' . s:tabSpace . '\(.*\)$'  ,  '\1\t\2' , "")
+    endwhile
+
+    return toReturn
+endfunction
+
+
+" Function: s:ConvertLeadingTabsToSpaces(line) {{{2
+" This function takes a line and converts all leading spaces on that line into
+" tabs
+"
+" Args:
+"   -line: the line whose leading spaces will be converted
+function s:ConvertLeadingTabsToSpaces(line)
+    let toReturn  = a:line
+    while toReturn =~ '^\( *\)\t'
+        let toReturn = substitute(toReturn, '^\( *\)\t',  '\1' . s:tabSpace , "")
+    endwhile
+
+    return toReturn
+endfunction
+
+" Function: s:CountNonESCedOccurances(str, searchstr, escChar) {{{2
+" This function counts the number of substrings contained in another string.
+" These substrings are only counted if they are not escaped with escChar
+" Args:
+"   -str: the string to look for searchstr in
+"   -searchstr: the substring to search for in str
+"   -escChar: the escape character which, when preceding an instance of
+"    searchstr, will cause it not to be counted
+function s:CountNonESCedOccurances(str, searchstr, escChar)
+    "get the index of the first occurrence of searchstr
+    let indx = stridx(a:str, a:searchstr)
+
+    "if there is an instance of searchstr in str process it
+    if indx != -1 
+        "get the remainder of str after this instance of searchstr is removed
+        let lensearchstr = strlen(a:searchstr)
+        let strLeft = strpart(a:str, indx+lensearchstr)
+
+        "if this instance of searchstr is not escaped, add one to the count
+        "and recurse. If it is escaped, just recurse 
+        if !s:IsEscaped(a:str, indx, a:escChar)
+            return 1 + s:CountNonESCedOccurances(strLeft, a:searchstr, a:escChar)
+        else
+            return s:CountNonESCedOccurances(strLeft, a:searchstr, a:escChar)
+        endif
+    endif
+endfunction
+" Function: s:DoesBlockHaveDelim(delim, top, bottom) {{{2
+" Returns 1 if the given block of lines has a delimiter (a:delim) in it
+" Args:
+"   -delim: the comment delimiter to check the block for
+"   -top: the top line number of the block
+"   -bottom: the bottom line number of the block
+function s:DoesBlockHaveDelim(delim, top, bottom)
+    let currentLine = a:top
+    while currentLine < a:bottom
+        let theline = getline(currentLine)
+        if s:FindDelimiterIndex(a:delim, theline) != -1
+            return 1
+        endif
+        let currentLine = currentLine + 1
+    endwhile
+    return 0
+endfunction
+
+" Function: s:DoesBlockHaveMultipartDelim(top, bottom) {{{2
+" Returns 1 if the given block has a >= 1 multipart delimiter in it
+" Args:
+"   -top: the top line number of the block
+"   -bottom: the bottom line number of the block
+function s:DoesBlockHaveMultipartDelim(top, bottom)
+    if s:HasMultipartDelims()
+        if b:right != ''
+            return s:DoesBlockHaveDelim(b:left, a:top, a:bottom) || s:DoesBlockHaveDelim(b:right, a:top, a:bottom)
+        else
+            return s:DoesBlockHaveDelim(b:leftAlt, a:top, a:bottom) || s:DoesBlockHaveDelim(b:rightAlt, a:top, a:bottom)
+        endif
+    endif
+    return 0
+endfunction
+
+
+" Function: s:Esc(str) {{{2
+" Escapes all the tricky chars in the given string
+function s:Esc(str)
+    let charsToEsc = '*/\."&$+'
+    return escape(a:str, charsToEsc)
+endfunction
+
+" Function: s:FindDelimiterIndex(delimiter, line) {{{2
+" This function is used to get the string index of the input comment delimiter
+" on the input line. If no valid comment delimiter is found in the line then
+" -1 is returned
+" Args:
+"   -delimiter: the delimiter we are looking to find the index of
+"   -line: the line we are looking for delimiter on
+function s:FindDelimiterIndex(delimiter, line)
+
+    "make sure the delimiter isnt empty otherwise we go into an infinite loop.
+    if a:delimiter == ""
+        return -1
+    endif
+
+
+    let l:delimiter = a:delimiter
+    let lenDel = strlen(l:delimiter)
+
+    "get the index of the first occurrence of the delimiter 
+    let delIndx = stridx(a:line, l:delimiter)
+
+    "keep looping thru the line till we either find a real comment delimiter
+    "or run off the EOL 
+    while delIndx != -1
+
+        "if we are not off the EOL get the str before the possible delimiter
+        "in question and check if it really is a delimiter. If it is, return
+        "its position 
+        if delIndx != -1
+            if s:IsDelimValid(l:delimiter, delIndx, a:line)
+                return delIndx
+            endif
+        endif
+
+        "we have not yet found a real comment delimiter so move past the
+        "current one we are lookin at 
+        let restOfLine = strpart(a:line, delIndx + lenDel)
+        let distToNextDelim = stridx(restOfLine , l:delimiter)
+
+        "if distToNextDelim is -1 then there is no more potential delimiters
+        "on the line so set delIndx to -1. Otherwise, move along the line by
+        "distToNextDelim 
+        if distToNextDelim == -1
+            let delIndx = -1
+        else
+            let delIndx = delIndx + lenDel + distToNextDelim
+        endif
+    endwhile
+
+    "there is no comment delimiter on this line 
+    return -1
+endfunction
+
+" Function: s:FindBoundingLinesOfSexyCom(lineNum) {{{2
+" This function takes in a line number and tests whether this line number is
+" the top/bottom/middle line of a sexy comment. If it is then the top/bottom
+" lines of the sexy comment are returned
+" Args:
+"   -lineNum: the line number that is to be tested whether it is the
+"    top/bottom/middle line of a sexy com
+" Returns:
+"   A string that has the top/bottom lines of the sexy comment encoded in it.
+"   The format is 'topline,bottomline'. If a:lineNum turns out not to be the
+"   top/bottom/middle of a sexy comment then -1 is returned
+function s:FindBoundingLinesOfSexyCom(lineNum)
+
+    "find which delimiters to look for as the start/end delims of the comment 
+    let left = ''
+    let right = ''
+    if b:right != ''
+        let left = s:GetLeft(0,0,1)
+        let right = s:GetRight(0,0,1)
+    elseif b:rightAlt != ''
+        let left = s:GetLeft(1,0,1)
+        let right = s:GetRight(1,0,1)
+    else
+        return -1
+    endif
+
+    let sexyComMarker = s:GetSexyComMarker(0, 1)
+
+    "initialise the top/bottom line numbers of the sexy comment to -1
+    let top = -1
+    let bottom = -1
+
+    let currentLine = a:lineNum
+    while top == -1 || bottom == -1 
+        let theLine = getline(currentLine)
+
+        "check if the current line is the top of the sexy comment
+        if theLine =~ '^[ \t]*' . left && theLine !~ '.*' . right
+            let top = currentLine
+            let currentLine = a:lineNum
+
+        "check if the current line is the bottom of the sexy comment
+        elseif theLine =~ '^[ \t]*' . right && theLine !~ '.*' . left
+            let bottom = currentLine
+
+        "the right delimiter is on the same line as the last sexyComMarker 
+        elseif theLine =~ '^[ \t]*' . sexyComMarker . '.*' . right
+            let bottom = currentLine
+
+        "we have not found the top or bottom line so we assume currentLine is an
+        "intermediate line and look to prove otherwise 
+        else
+
+            "if the line doesnt start with a sexyComMarker then it is not a sexy
+            "comment 
+            if theLine !~ '^[ \t]*' . sexyComMarker
+                return -1
+            endif
+
+        endif
+
+        "if top is -1 then we havent found the top yet so keep looking up 
+        if top == -1
+            let currentLine = currentLine - 1
+        "if we have found the top line then go down looking for the bottom 
+        else
+            let currentLine = currentLine + 1
+        endif
+
+    endwhile
+
+    "encode the answer in a string and return it 
+    return top . ',' . bottom
+endfunction
+
+
+" Function: s:GetCanCommentLine(forceNested, line) {{{2
+"This function is used to determine whether the given line can be commented.
+"It returns 1 if it can be and 0 otherwise
+"
+" Args:
+"   -forceNested: a flag indicating whether the caller wants comments to be nested
+"    if the current line is already commented
+"   -lineNum: the line num of the line to check for commentability
+function s:GetCanCommentLine(forceNested, lineNum)
+    let theLine = getline(a:lineNum)
+
+    " make sure we don't comment lines that are just spaces or tabs or empty.
+    if theLine =~ "^[ \t]*$" 
+        return 0
+    endif
+
+    "if the line is part of a sexy comment then just flag it...  
+    if s:FindBoundingLinesOfSexyCom(a:lineNum) != -1
+        return 0
+    endif
+
+    let isCommented = s:IsCommentedNormOrSexy(a:lineNum)
+
+    "if the line isnt commented return true
+    if !isCommented 
+        return 1
+    endif
+
+    "if the line is commented but nesting is allowed then return true
+    if a:forceNested && (b:right=='' || g:NERDUsePlaceHolders)
+        return 1
+    endif
+
+    return 0
+endfunction
+
+" Function: s:GetCanSexyCommentLines(topline, bottomline) {{{2
+" Return: 1 if the given lines can be commented sexually, 0 otherwise
+function s:GetCanSexyCommentLines(topline, bottomline)
+    " see if the selected regions have any sexy comments 
+    let currentLine = a:topline
+    while(currentLine <= a:bottomline)
+        if(s:FindBoundingLinesOfSexyCom(currentLine) != -1)
+            return 0
+        endif
+        let currentLine = currentLine + 1
+    endwhile
+    return 1
+endfunction
+" Function: s:GetCanToggleCommentLine(forceNested, line) {{{2
+"This function is used to determine whether the given line can be toggle commented.
+"It returns 1 if it can be and 0 otherwise
+"
+" Args:
+"   -lineNum: the line num of the line to check for commentability
+function s:GetCanToggleCommentLine(forceNested, lineNum)
+    let theLine = getline(a:lineNum)
+    if (s:IsCommentedFromStartOfLine(b:left, theLine) || s:IsCommentedFromStartOfLine(b:leftAlt, theLine)) && !a:forceNested
+        return 0
+    endif
+
+    " make sure we don't comment lines that are just spaces or tabs or empty.
+    if theLine =~ "^[ \t]*$" 
+        return 0
+    endif
+
+    "if the line is part of a sexy comment then just flag it...  
+    if s:FindBoundingLinesOfSexyCom(a:lineNum) != -1
+        return 0
+    endif
+
+    return 1
+endfunction
+
+" Function: s:GetIndxInSubstr(indx, substr, str) {{{2
+" This function look for an occurrence of substr that is pointed to by indx. An
+" int is returned indicating how many chars into substr indx occurs. For
+" example if str is "abcfoobar" and substr is "foobar" and indx is 5 then 2 is
+" returned cos indx points 2 chars into substr
+" 
+" Args:
+"   -indx: the indx to look for the occurrence of substr at
+"   -substr: the substring that we will get the relative index of indx to
+"   -str: the string to look in
+function s:GetIndxInSubstr(indx, substr, str)
+    "validate params 
+    if a:substr=="" || a:str=="" || a:indx<0
+        return -1
+    endif
+
+    let lenSubstr = strlen(a:substr)
+
+    "i is used to measure the relative dist from the last occurrence of substr
+    "to the next one. i2 is the absolute indx of the current instance of
+    "substsr
+    let i = 0 
+    let i2 = 0
+
+    "keep looping till there are no more instances of substr left
+    while i != -1
+
+        "get the indx of the next occurrence of substr 
+        let i = stridx(strpart(a:str, i2), a:substr)
+        let i2 = i2 + i
+
+        "if indx lies inside this instance of substr return its relative
+        "position inside the substr 
+        if i != -1 && a:indx < i2+lenSubstr && a:indx >= i2
+            return a:indx - i2
+        endif
+
+        "move past this instance of substr 
+        let i2 = i2 + lenSubstr
+
+    endwhile
+
+    return -1
+endfunction
+
+
+
+
+" Function: s:GetLastIndexOfDelim(delim, str) {{{2
+" This function takes a string and a delimiter and returns the last index of
+" that delimiter in string
+" Args:
+"   -delim: the delimiter to look for
+"   -str: the string to look for delim in
+function s:GetLastIndexOfDelim(delim, str)
+    let delim = a:delim
+    let lenDelim = strlen(delim)
+
+    "set index to the first occurrence of delim. If there is no occurrence then
+    "bail
+    let indx = s:FindDelimiterIndex(delim, a:str)
+    if indx == -1
+        return -1
+    endif
+
+    "keep moving to the next instance of delim in str till there is none left 
+    while 1
+
+        "search for the next delim after the previous one
+        let searchStr = strpart(a:str, indx+lenDelim)
+        let indx2 = s:FindDelimiterIndex(delim, searchStr)
+
+        "if we find a delim update indx to record the position of it, if we
+        "dont find another delim then indx is the last one so break out of
+        "this loop 
+        if indx2 != -1
+            let indx = indx + indx2 + lenDelim
+        else
+            break
+        endif
+    endwhile
+
+    return indx
+
+endfunction
+
+" Function: s:GetLeftMostIndx(countCommentedLines, countEmptyLines, topline, bottomline) {{{2
+" This function takes in 2 line numbers and returns the index of the left most
+" char (that is not a space or a tab) on all of these lines. 
+" Args:
+"   -countCommentedLines: 1 if lines that are commented are to be checked as
+"    well. 0 otherwise
+"   -countEmptyLines: 1 if empty lines are to be counted in the search
+"   -topline: the top line to be checked
+"   -bottomline: the bottom line to be checked
+function s:GetLeftMostIndx(countCommentedLines, countEmptyLines, topline, bottomline)
+
+    " declare the left most index as an extreme value 
+    let leftMostIndx = 1000
+
+    " go thru the block line by line updating leftMostIndx 
+    let currentLine = a:topline
+    while currentLine <= a:bottomline
+
+        " get the next line and if it is allowed to be commented, or is not
+        " commented, check it
+        let theLine = getline(currentLine)
+        if a:countEmptyLines || theLine !~ '^[ \t]*$' 
+            if a:countCommentedLines || (!s:IsCommented(b:left, b:right, theLine) && !s:IsCommented(b:leftAlt, b:rightAlt, theLine))
+                " convert spaces to tabs and get the number of leading spaces for
+                " this line and update leftMostIndx if need be
+                let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+                let leadSpaceOfLine = strlen( substitute(theLine, '\(^[ \t]*\).*$','\1','') ) 
+                if leadSpaceOfLine < leftMostIndx
+                    let leftMostIndx = leadSpaceOfLine
+                endif
+            endif
+        endif
+
+        " move on to the next line 
+        let currentLine = currentLine + 1
+    endwhile
+
+    if leftMostIndx == 1000
+        return 0
+    else
+        return leftMostIndx
+    endif
+endfunction
+
+" Function: s:GetLeft(alt, space, esc) {{{2
+" returns the left/left-alternative delimiter
+" Args:
+"   -alt: specifies whether to get left or left-alternative delim
+"   -space: specifies whether the delim should be spaced or not
+"    (the space string will only be added if NERDSpaceDelims is set)
+"   -esc: specifies whether the tricky chars in the delim should be ESCed
+function s:GetLeft(alt, space, esc)
+    let delim = b:left
+
+    if a:alt
+        if b:leftAlt == ''
+            return ''
+        else
+            let delim = b:leftAlt
+        endif 
+    endif
+    if delim == ''
+        return ''
+    endif
+
+    if a:space && g:NERDSpaceDelims
+        let delim = delim . s:spaceStr
+    endif
+
+    if a:esc
+        let delim = s:Esc(delim)
+    endif
+
+    return delim
+endfunction
+
+" Function: s:GetRight(alt, space, esc) {{{2
+" returns the right/right-alternative delimiter
+" Args:
+"   -alt: specifies whether to get right or right-alternative delim
+"   -space: specifies whether the delim should be spaced or not
+"   (the space string will only be added if NERDSpaceDelims is set)
+"   -esc: specifies whether the tricky chars in the delim should be ESCed
+function s:GetRight(alt, space, esc)
+    let delim = b:right
+
+    if a:alt
+        if b:rightAlt == ''
+            return ''
+        else
+            let delim = b:rightAlt
+        endif 
+    endif
+    if delim == ''
+        return ''
+    endif
+
+    if a:space && g:NERDSpaceDelims 
+        let delim = s:spaceStr . delim 
+    endif
+
+    if a:esc
+        let delim = s:Esc(delim)
+    endif
+
+    return delim
+endfunction
+
+
+" Function: s:GetRightMostIndx(countCommentedLines, countEmptyLines, topline, bottomline) {{{2
+" This function takes in 2 line numbers and returns the index of the right most
+" char on all of these lines. 
+" Args:
+"   -countCommentedLines: 1 if lines that are commented are to be checked as
+"    well. 0 otherwise
+"   -countEmptyLines: 1 if empty lines are to be counted in the search
+"   -topline: the top line to be checked
+"   -bottomline: the bottom line to be checked
+function s:GetRightMostIndx(countCommentedLines, countEmptyLines, topline, bottomline)
+    let rightMostIndx = -1
+
+    " go thru the block line by line updating rightMostIndx 
+    let currentLine = a:topline
+    while currentLine <= a:bottomline
+
+        " get the next line and see if it is commentable, otherwise it doesnt
+        " count
+        let theLine = getline(currentLine)
+        if a:countEmptyLines || theLine !~ '^[ \t]*$' 
+
+            if a:countCommentedLines || (!s:IsCommented(b:left, b:right, theLine) && !s:IsCommented(b:leftAlt, b:rightAlt, theLine))
+
+                " update rightMostIndx if need be 
+                let theLine = s:ConvertLeadingTabsToSpaces(theLine)
+                let lineLen = strlen(theLine)
+                if lineLen > rightMostIndx
+                    let rightMostIndx = lineLen
+                endif
+            endif
+        endif
+
+        " move on to the next line 
+        let currentLine = currentLine + 1
+    endwhile
+
+    return rightMostIndx
+endfunction
+
+" Function: s:GetNumLinesInBuf() {{{2
+" Returns the number of lines in the current buffer
+function s:GetNumLinesInBuf()
+    return line('$')
+endfunction
+
+" Function: s:GetSexyComMarker() {{{2
+" Returns the sexy comment marker for the current filetype.
+"
+" C style sexy comments are assumed if possible. If not then the sexy comment
+" marker is the last char of the delimiter pair that has both left and right
+" delims and has the longest left delim
+"
+" Args:
+"   -space: specifies whether the marker is to have a space string after it
+"    (the space string will only be added if NERDSpaceDelims is set)
+"   -esc: specifies whether the tricky chars in the marker are to be ESCed
+function s:GetSexyComMarker(space, esc)
+    let sexyComMarker = b:sexyComMarker
+
+    "if there is no hardcoded marker then we find one 
+    if sexyComMarker == ''
+
+        "if the filetype has c style comments then use standard c sexy
+        "comments 
+        if s:HasCStyleComments()
+            let sexyComMarker = '*'
+        else
+            "find a comment marker by getting the longest available left delim
+            "(that has a corresponding right delim) and taking the last char
+            let lenLeft = strlen(b:left)
+            let lenLeftAlt = strlen(b:leftAlt)
+            let left = ''
+            let right = ''
+            if b:right != '' && lenLeft >= lenLeftAlt
+                let left = b:left
+            elseif b:rightAlt != ''
+                let left = b:leftAlt
+            else
+                return -1 
+            endif
+
+            "get the last char of left 
+            let sexyComMarker = strpart(left, strlen(left)-1)
+        endif
+    endif
+
+    if a:space && g:NERDSpaceDelims
+        let sexyComMarker = sexyComMarker . s:spaceStr
+    endif 
+
+    if a:esc
+        let sexyComMarker = s:Esc(sexyComMarker)
+    endif
+
+    return sexyComMarker
+endfunction
+
+" Function: s:GetSexyComLeft(space, esc) {{{2
+" Returns the left delimiter for sexy comments for this filetype or -1 if
+" there is none. C style sexy comments are used if possible
+" Args:
+"   -space: specifies if the delim has a space string on the end
+"   (the space string will only be added if NERDSpaceDelims is set)
+"   -esc: specifies whether the tricky chars in the string are ESCed
+function s:GetSexyComLeft(space, esc)
+    let lenLeft = strlen(b:left)
+    let lenLeftAlt = strlen(b:leftAlt)
+    let left = ''
+
+    "assume c style sexy comments if possible 
+    if s:HasCStyleComments()
+        let left = '/*'
+    else
+        "grab the longest left delim that has a right 
+        if b:right != '' && lenLeft >= lenLeftAlt
+            let left = b:left
+        elseif b:rightAlt != ''
+            let left = b:leftAlt
+        else
+            return -1
+        endif
+    endif
+
+    if a:space && g:NERDSpaceDelims
+        let left = left . s:spaceStr
+    endif
+
+    if a:esc
+        let left = s:Esc(left)
+    endif
+
+    return left
+endfunction
+
+" Function: s:GetSexyComRight(space, esc) {{{2
+" Returns the right delimiter for sexy comments for this filetype or -1 if
+" there is none. C style sexy comments are used if possible.
+" Args:
+"   -space: specifies if the delim has a space string on the start
+"   (the space string will only be added if NERDSpaceDelims
+"   is specified for the current filetype)
+"   -esc: specifies whether the tricky chars in the string are ESCed
+function s:GetSexyComRight(space, esc)
+    let lenLeft = strlen(b:left)
+    let lenLeftAlt = strlen(b:leftAlt)
+    let right = ''
+
+    "assume c style sexy comments if possible 
+    if s:HasCStyleComments()
+        let right = '*/'
+    else
+        "grab the right delim that pairs with the longest left delim 
+        if b:right != '' && lenLeft >= lenLeftAlt
+            let right = b:right
+        elseif b:rightAlt != ''
+            let right = b:rightAlt
+        else
+            return -1
+        endif
+    endif
+
+    if a:space && g:NERDSpaceDelims
+        let right = s:spaceStr . right 
+    endif
+
+    if a:esc
+        let right = s:Esc(right)
+    endif
+
+    return right
+endfunction
+
+" Function: s:GetTabbedCol(line, col) {{{2
+" Gets the col number for given line and existing col number. The new col
+" number is the col number when all leading spaces are converted to tabs
+" Args:
+"   -line:the line to get the rel col for
+"   -col: the abs col 
+function s:GetTabbedCol(line, col)
+    let lineTruncated = strpart(a:line, 0, a:col)
+    let lineSpacesToTabs = substitute(lineTruncated, s:tabSpace, '\t', 'g')
+    return strlen(lineSpacesToTabs)
+endfunction
+" Function: s:GetUntabbedCol(line, col) {{{2
+" Takes a line and a col and returns the absolute column of col taking into
+" account that a tab is worth 3 or 4 (or whatever) spaces.
+" Args:
+"   -line:the line to get the abs col for
+"   -col: the col that doesnt take into account tabs
+function s:GetUntabbedCol(line, col)
+    let lineTruncated = strpart(a:line, 0, a:col)
+    let lineTabsToSpaces = substitute(lineTruncated, '\t', s:tabSpace, 'g')
+    return strlen(lineTabsToSpaces)
+endfunction
+" Function: s:HasMultipartDelims() {{{2
+" Returns 1 iff the current filetype has at least one set of multipart delims
+function s:HasMultipartDelims()
+    return (b:left != '' && b:right != '') || (b:leftAlt != '' && b:rightAlt != '')
+endfunction
+
+" Function: s:HasLeadingTab(str) {{{2
+" Returns 1 iff the input has >= 1 leading tab
+function s:HasLeadingTab(str)
+    return a:str =~ '^\t.*'
+endfunction
+" Function: s:HasCStyleComments() {{{2
+" Returns 1 iff the current filetype has c style comment delimiters
+function s:HasCStyleComments()
+    return (b:left == '/*' && b:right == '*/') || (b:leftAlt == '/*' && b:rightAlt == '*/')
+endfunction
+
+" Function: s:InstallDocumentation(full_name, revision)              {{{2
+"   Install help documentation.
+" Arguments:
+"   full_name: Full name of this vim plugin script, including path name.
+"   revision:  Revision of the vim script. #version# mark in the document file
+"              will be replaced with this string with 'v' prefix.
+" Return:
+"   1 if new document installed, 0 otherwise.
+" Note: Cleaned and generalized by guo-peng Wen.
+"
+" Note about authorship: this function was taken from the vimspell plugin
+" which can be found at http://www.vim.org/scripts/script.php?script_id=465
+"
+function s:InstallDocumentation(full_name, revision)
+    " Name of the document path based on the system we use:
+    if has("vms")
+        " No chance that this script will work with
+        " VMS -  to much pathname juggling here.
+        return 1
+    elseif (has("unix"))
+        " On UNIX like system, using forward slash:
+        let l:slash_char = '/'
+        let l:mkdir_cmd  = ':silent !mkdir -p '
+    else
+        " On M$ system, use backslash. Also mkdir syntax is different.
+        " This should only work on W2K and up.
+        let l:slash_char = '\'
+        let l:mkdir_cmd  = ':silent !mkdir '
+    endif
+
+    let l:doc_path = l:slash_char . 'doc'
+    let l:doc_home = l:slash_char . '.vim' . l:slash_char . 'doc'
+
+    " Figure out document path based on full name of this script:
+    let l:vim_plugin_path = fnamemodify(a:full_name, ':h')
+    let l:vim_doc_path    = fnamemodify(a:full_name, ':h:h') . l:doc_path
+    if (!(filewritable(l:vim_doc_path) == 2))
+        "Doc path: " . l:vim_doc_path
+        call s:NerdEcho("Doc path: " . l:vim_doc_path, 0)
+        execute l:mkdir_cmd . '"' . l:vim_doc_path . '"'
+        if (!(filewritable(l:vim_doc_path) == 2))
+            " Try a default configuration in user home:
+            let l:vim_doc_path = expand("~") . l:doc_home
+            if (!(filewritable(l:vim_doc_path) == 2))
+                execute l:mkdir_cmd . '"' . l:vim_doc_path . '"'
+                if (!(filewritable(l:vim_doc_path) == 2))
+                    " Put a warning:
+                    call s:NerdEcho("Unable to open documentation directory \ntype :help add-local-help for more information.", 0)
+                    echo l:vim_doc_path
+                    return 0
+                endif
+            endif
+        endif
+    endif
+
+    " Exit if we have problem to access the document directory:
+    if (!isdirectory(l:vim_plugin_path) || !isdirectory(l:vim_doc_path) || filewritable(l:vim_doc_path) != 2)
+        return 0
+    endif
+
+    " Full name of script and documentation file:
+    let l:script_name = fnamemodify(a:full_name, ':t')
+    let l:doc_name    = fnamemodify(a:full_name, ':t:r') . '.txt'
+    let l:plugin_file = l:vim_plugin_path . l:slash_char . l:script_name
+    let l:doc_file    = l:vim_doc_path    . l:slash_char . l:doc_name
+
+    " Bail out if document file is still up to date:
+    if (filereadable(l:doc_file) && getftime(l:plugin_file) < getftime(l:doc_file))
+        return 0
+    endif
+
+    " Prepare window position restoring command:
+    if (strlen(@%))
+        let l:go_back = 'b ' . bufnr("%")
+    else
+        let l:go_back = 'enew!'
+    endif
+
+    " Create a new buffer & read in the plugin file (me):
+    setl nomodeline
+    exe 'enew!'
+    exe 'r ' . escape(l:plugin_file,s:NERDFileNameEscape)
+
+    setl modeline
+    let l:buf = bufnr("%")
+    setl noswapfile modifiable
+
+    norm zR
+    norm gg
+
+    " Delete from first line to a line starts with
+    " === START_DOC
+    1,/^=\{3,}\s\+START_DOC\C/ d
+
+    " Delete from a line starts with
+    " === END_DOC
+    " to the end of the documents:
+    /^=\{3,}\s\+END_DOC\C/,$ d
+
+    " Remove fold marks:
+    :%s/{\{3}[1-9]/    /
+
+    " Add modeline for help doc: the modeline string is mangled intentionally
+    " to avoid it be recognized by VIM:
+    call append(line('$'), '')
+    call append(line('$'), ' v' . 'im:tw=78:ts=8:ft=help:norl:')
+
+    " Replace revision:
+    "exe "normal :1s/#version#/ v" . a:revision . "/\<CR>"
+    exe "normal :%s/#version#/ v" . a:revision . "/\<CR>"
+
+    " Save the help document:
+    exe 'w! ' . escape(l:doc_file,s:NERDFileNameEscape)
+    exe l:go_back
+    exe 'bw ' . l:buf
+
+    " Build help tags:
+    exe 'helptags ' . escape(l:vim_doc_path,s:NERDFileNameEscape)
+
+    return 1
+endfunction
+
+
+" Function: s:IsCommentedNormOrSexy(lineNum) {{{2
+"This function is used to determine whether the given line is commented with
+"either set of delimiters or if it is part of a sexy comment
+"
+" Args:
+"   -lineNum: the line number of the line to check
+function s:IsCommentedNormOrSexy(lineNum)
+    let theLine = getline(a:lineNum)
+
+    "if the line is commented normally return 1
+    if s:IsCommented(b:left, b:right, theLine) || s:IsCommented(b:leftAlt, b:rightAlt, theLine)
+        return 1
+    endif
+
+    "if the line is part of a sexy comment return 1 
+    if s:FindBoundingLinesOfSexyCom(a:lineNum) != -1
+        return 1
+    endif
+    return 0
+endfunction
+
+" Function: s:IsCommented(left, right, line) {{{2
+"This function is used to determine whether the given line is commented with
+"the given delimiters
+"
+" Args:
+"   -line: the line that to check if commented
+"   -left/right: the left and right delimiters to check for
+function s:IsCommented(left, right, line)
+    "if the line isnt commented return true
+    if s:FindDelimiterIndex(a:left, a:line) != -1 && (s:FindDelimiterIndex(a:right, a:line) != -1 || a:right == "")
+        return 1
+    endif
+    return 0
+endfunction
+
+" Function: s:IsCommentedFromStartOfLine(left, line) {{{2
+"This function is used to determine whether the given line is commented with
+"the given delimiters at the start of the line i.e the left delimiter is the
+"first thing on the line (apart from spaces\tabs)
+"
+" Args:
+"   -line: the line that to check if commented
+"   -left: the left delimiter to check for
+function s:IsCommentedFromStartOfLine(left, line)
+    let theLine = s:ConvertLeadingTabsToSpaces(a:line)
+    let numSpaces = strlen(substitute(theLine, '^\( *\).*$', '\1', ''))
+    let delimIndx = s:FindDelimiterIndex(a:left, theLine)
+    return delimIndx == numSpaces
+endfunction
+
+" Function: s:IsCommentedOuttermost(left, right, leftAlt, rightAlt, line) {{{2
+" Finds the type of the outtermost delims on the line
+"
+" Args:
+"   -line: the line that to check if the outtermost comments on it are
+"    left/right
+"   -left/right: the left and right delimiters to check for
+"   -leftAlt/rightAlt: the left and right alternative delimiters to check for
+"
+" Returns:
+"   0 if the line is not commented with either set of delims
+"   1 if the line is commented with the left/right delim set
+"   2 if the line is commented with the leftAlt/rightAlt delim set
+function s:IsCommentedOuttermost(left, right, leftAlt, rightAlt, line)
+    "get the first positions of the left delims and the last positions of the
+    "right delims
+    let indxLeft = s:FindDelimiterIndex(a:left, a:line)
+    let indxLeftAlt = s:FindDelimiterIndex(a:leftAlt, a:line)
+    let indxRight = s:GetLastIndexOfDelim(a:right, a:line)
+    let indxRightAlt = s:GetLastIndexOfDelim(a:rightAlt, a:line)
+
+    "check if the line has a left delim before a leftAlt delim 
+    if (indxLeft <= indxLeftAlt || indxLeftAlt == -1) && indxLeft != -1 
+        "check if the line has a right delim after any rightAlt delim
+        if (indxRight > indxRightAlt && indxRight > indxLeft) || a:right == ''
+            return 1
+        endif
+
+        "check if the line has a leftAlt delim before a left delim 
+    elseif (indxLeftAlt <= indxLeft || indxLeft == -1) && indxLeftAlt != -1
+        "check if the line has a rightAlt delim after any right delim
+        if (indxRightAlt > indxRight && indxRightAlt > indxLeftAlt) || a:rightAlt == ''
+            return 2
+        endif
+    else
+        return 0
+    endif
+
+    return 0
+
+endfunction
+
+
+" Function: s:IsDelimValid(delimiter, delIndx, line) {{{2
+" This function is responsible for determining whether a given instance of a
+" comment delimiter is a real delimiter or not. For example, in java the
+" // string is a comment delimiter but in the line:
+"               System.out.println("//");
+" it does not count as a comment delimiter. This function is responsible for
+" distinguishing between such cases. It does so by applying a set of
+" heuristics that are not fool proof but should work most of the time.
+"
+" Args:
+"   -delimiter: the delimiter we are validating
+"   -delIndx: the position of delimiter in line
+"   -line: the line that delimiter occurs in
+"
+" Returns:
+" 0 if the given delimiter is not a real delimiter (as far as we can tell) , 
+" 1 otherwise
+function s:IsDelimValid(delimiter, delIndx, line)
+    "get the delimiter without the escchars 
+    let l:delimiter = a:delimiter
+
+    "get the strings before and after the delimiter 
+    let preComStr = strpart(a:line, 0, a:delIndx)
+    let postComStr = strpart(a:line, a:delIndx+strlen(delimiter))
+
+    "to check if the delimiter is real, make sure it isnt preceded by
+    "an odd number of quotes and followed by the same (which would indicate
+    "that it is part of a string and therefore is not a comment)
+    if !s:IsNumEven(s:CountNonESCedOccurances(preComStr, '"', "\\")) && !s:IsNumEven(s:CountNonESCedOccurances(postComStr, '"', "\\")) 
+        return 0
+    endif
+    if !s:IsNumEven(s:CountNonESCedOccurances(preComStr, "'", "\\")) && !s:IsNumEven(s:CountNonESCedOccurances(postComStr, "'", "\\")) 
+        return 0
+    endif
+    if !s:IsNumEven(s:CountNonESCedOccurances(preComStr, "`", "\\")) && !s:IsNumEven(s:CountNonESCedOccurances(postComStr, "`", "\\")) 
+        return 0
+    endif
+
+
+    "if the comment delimiter is escaped, assume it isnt a real delimiter 
+    if s:IsEscaped(a:line, a:delIndx, "\\")
+        return 0
+    endif
+
+    "vim comments are so fuckin stupid!! Why the hell do they have comment
+    "delimiters that are used elsewhere in the syntax?!?! We need to check
+    "some conditions especially for vim 
+    if &filetype == "vim"
+        if !s:IsNumEven(s:CountNonESCedOccurances(preComStr, '"', "\\"))
+            return 0
+        endif
+
+        "if the delimiter is on the very first char of the line or is the
+        "first non-tab/space char on the line then it is a valid comment delimiter 
+        if a:delIndx == 0 || a:line =~ "^[ \t]\\{" . a:delIndx . "\\}\".*$"
+            return 1
+        endif
+
+        let numLeftParen =s:CountNonESCedOccurances(preComStr, "(", "\\") 
+        let numRightParen =s:CountNonESCedOccurances(preComStr, ")", "\\") 
+
+        "if the quote is inside brackets then assume it isnt a comment 
+        if numLeftParen > numRightParen
+            return 0
+        endif
+
+        "if the line has an even num of unescaped "'s then we can assume that
+        "any given " is not a comment delimiter
+        if s:IsNumEven(s:CountNonESCedOccurances(a:line, "\"", "\\"))
+            return 0
+        endif
+    endif
+
+    return 1
+
+endfunction
+
+" Function: s:IsNumEven(num) {{{2
+" A small function the returns 1 if the input number is even and 0 otherwise
+" Args:
+"   -num: the number to check
+function s:IsNumEven(num)
+    return (a:num % 2) == 0
+endfunction
+
+" Function: s:IsEscaped(str, indx, escChar) {{{2
+" This function takes a string, an index into that string and an esc char and
+" returns 1 if the char at the index is escaped (i.e if it is preceded by an
+" odd number of esc chars)
+" Args:
+"   -str: the string to check
+"   -indx: the index into str that we want to check
+"   -escChar: the escape char the char at indx may be ESCed with
+function s:IsEscaped(str, indx, escChar)
+    "initialise numEscChars to 0 and look at the char before indx 
+    let numEscChars = 0
+    let curIndx = a:indx-1
+
+    "keep going back thru str until we either reach the start of the str or
+    "run out of esc chars 
+    while curIndx >= 0 && strpart(a:str, curIndx, 1) == a:escChar
+
+        "we have found another esc char so add one to the count and move left
+        "one char
+        let numEscChars  = numEscChars + 1
+        let curIndx = curIndx - 1
+
+    endwhile
+
+    "if there is an odd num of esc chars directly before the char at indx then
+    "the char at indx is escaped
+    return !s:IsNumEven(numEscChars)
+endfunction
+
+" Function: s:IsSexyComment(topline, bottomline) {{{2
+" This function takes in 2 line numbers and returns 1 if the lines between and
+" including the given line numbers are a sexy comment. It returns 0 otherwise.
+" Args:
+"   -topline: the line that the possible sexy comment starts on
+"   -bottomline: the line that the possible sexy comment stops on
+function s:IsSexyComment(topline, bottomline)
+
+    "get the delim set that would be used for a sexy comment 
+    let left = ''
+    let right = ''
+    if b:right != ''
+        let left = b:left
+        let right = b:right
+    elseif b:rightAlt != ''
+        let left = b:leftAlt
+        let right = b:rightAlt
+    else
+        return 0
+    endif
+
+    "swap the top and bottom line numbers around if need be  
+    let topline = a:topline
+    let bottomline = a:bottomline
+    if bottomline < topline 
+        topline = bottomline
+        bottomline = a:topline
+    endif
+
+    "if there is < 2 lines in the comment it cannot be sexy 
+    if (bottomline - topline) <= 0
+        return 0
+    endif
+
+    "if the top line doesnt begin with a left delim then the comment isnt sexy 
+    if getline(a:topline) !~ '^[ \t]*' . left
+        return 0
+    endif
+
+    "if there is a right delim on the top line then this isnt a sexy comment 
+    if s:FindDelimiterIndex(right, getline(a:topline)) != -1
+        return 0
+    endif
+
+    "if there is a left delim on the bottom line then this isnt a sexy comment 
+    if s:FindDelimiterIndex(left, getline(a:bottomline)) != -1
+        return 0
+    endif
+
+    "if the bottom line doesnt begin with a right delim then the comment isnt
+    "sexy 
+    if getline(a:bottomline) !~ '^.*' . right . '$'
+        return 0
+    endif
+
+    let sexyComMarker = s:GetSexyComMarker(0, 1)
+
+    "check each of the intermediate lines to make sure they start with a
+    "sexyComMarker 
+    let currentLine = a:topline+1
+    while currentLine < a:bottomline
+        let theLine = getline(currentLine)
+
+        if theLine !~ '^[ \t]*' . sexyComMarker 
+            return 0
+        endif
+
+        "if there is a right delim in an intermediate line then the block isnt
+        "a sexy comment
+        if s:FindDelimiterIndex(right, theLine) != -1
+            return 0
+        endif
+
+        let currentLine = currentLine + 1
+    endwhile
+
+    "we have not found anything to suggest that this isnt a sexy comment so
+    return 1
+
+endfunction
+
+" Function: s:NerdEcho(msg, typeOfMsg) {{{2
+" Args:
+"   -msg: the message to echo
+"   -typeOfMsg: 0 = warning message
+"               1 = normal message
+function s:NerdEcho(msg, typeOfMsg)
+    if a:typeOfMsg == 0
+        echohl WarningMsg
+        echo 'NERDCommenter:' . a:msg
+        echohl None
+    elseif a:typeOfMsg == 1
+        echo 'NERDCommenter:' . a:msg
+    endif
+endfunction
+
+" Function: s:ReplaceDelims(toReplace1, toReplace2, replacor1, replacor2, str) {{{2
+" This function takes in a string, 2 delimiters in that string and 2 strings
+" to replace these delimiters with.
+" 
+" Args:
+"   -toReplace1: the first delimiter to replace
+"   -toReplace2: the second delimiter to replace
+"   -replacor1: the string to replace toReplace1 with
+"   -replacor2: the string to replace toReplace2 with
+"   -str: the string that the delimiters to be replaced are in
+function s:ReplaceDelims(toReplace1, toReplace2, replacor1, replacor2, str)
+    let line = s:ReplaceLeftMostDelim(a:toReplace1, a:replacor1, a:str)
+    let line = s:ReplaceRightMostDelim(a:toReplace2, a:replacor2, line)
+    return line
+endfunction
+
+" Function: s:ReplaceLeftMostDelim(toReplace, replacor, str) {{{2
+" This function takes a string and a delimiter and replaces the left most
+" occurrence of this delimiter in the string with a given string
+"
+" Args:
+"   -toReplace: the delimiter in str that is to be replaced
+"   -replacor: the string to replace toReplace with
+"   -str: the string that contains toReplace
+function s:ReplaceLeftMostDelim(toReplace, replacor, str)
+    let toReplace = a:toReplace
+    let replacor = a:replacor
+    "get the left most occurrence of toReplace 
+    let indxToReplace = s:FindDelimiterIndex(toReplace, a:str)
+
+    "if there IS an occurrence of toReplace in str then replace it and return
+    "the resulting string 
+    if indxToReplace != -1
+        let line = strpart(a:str, 0, indxToReplace) . replacor . strpart(a:str, indxToReplace+strlen(toReplace))
+        return line
+    endif
+
+    return a:str
+endfunction
+
+" Function: s:ReplaceRightMostDelim(toReplace, replacor, str) {{{2
+" This function takes a string and a delimiter and replaces the right most
+" occurrence of this delimiter in the string with a given string
+"
+" Args:
+"   -toReplace: the delimiter in str that is to be replaced
+"   -replacor: the string to replace toReplace with
+"   -str: the string that contains toReplace
+" 
+function s:ReplaceRightMostDelim(toReplace, replacor, str)
+    let toReplace = a:toReplace
+    let replacor = a:replacor
+    let lenToReplace = strlen(toReplace)
+
+    "get the index of the last delim in str 
+    let indxToReplace = s:GetLastIndexOfDelim(toReplace, a:str)
+
+    "if there IS a delimiter in str, replace it and return the result 
+    let line = a:str
+    if indxToReplace != -1
+        let line = strpart(a:str, 0, indxToReplace) . replacor . strpart(a:str, indxToReplace+strlen(toReplace))
+    endif
+    return line
+endfunction
+
+"FUNCTION: s:RestoreScreenState() {{{2 
+"
+"Sets the screen state back to what it was when s:SaveScreenState was last
+"called.
+"
+function s:RestoreScreenState()
+    if !exists("t:NERDComOldTopLine") || !exists("t:NERDComOldPos")
+        throw 'NERDCommenter exception: cannot restore screen'
+    endif
+
+    call cursor(t:NERDComOldTopLine, 0)
+    normal zt
+    call setpos(".", t:NERDComOldPos)
+endfunction
+
+"FUNCTION: s:SaveScreenState() {{{2 
+"Saves the current cursor position in the current buffer and the window
+"scroll position 
+function s:SaveScreenState()
+    let t:NERDComOldPos = getpos(".")
+    let t:NERDComOldTopLine = line("w0")
+endfunction
+
+" Function: s:SwapOutterMultiPartDelimsForPlaceHolders(line) {{{2
+" This function takes a line and swaps the outter most multi-part delims for
+" place holders
+" Args:
+"   -line: the line to swap the delims in
+" 
+function s:SwapOutterMultiPartDelimsForPlaceHolders(line)
+    " find out if the line is commented using normal delims and/or
+    " alternate ones 
+    let isCommented = s:IsCommented(b:left, b:right, a:line)
+    let isCommentedAlt = s:IsCommented(b:leftAlt, b:rightAlt, a:line)
+
+    let line2 = a:line
+
+    "if the line is commented and there is a right delimiter, replace
+    "the delims with place-holders
+    if isCommented && b:right != ""
+        let line2 = s:ReplaceDelims(b:left, b:right, g:NERDLPlace, g:NERDRPlace, a:line)
+
+    "similarly if the line is commented with the alternative
+    "delimiters 
+    elseif isCommentedAlt && b:rightAlt != ""
+        let line2 = s:ReplaceDelims(b:leftAlt, b:rightAlt, g:NERDLPlace, g:NERDRPlace, a:line)
+    endif
+
+    return line2
+endfunction
+
+
+" Function: s:SwapOutterPlaceHoldersForMultiPartDelims(line) {{{2
+" This function takes a line and swaps the outtermost place holders for
+" multi-part delims
+" Args:
+"   -line: the line to swap the delims in
+" 
+function s:SwapOutterPlaceHoldersForMultiPartDelims(line)
+    let left = ''
+    let right = ''
+    if b:right != ''
+        let left = b:left
+        let right = b:right
+    elseif b:rightAlt != ''
+        let left = b:leftAlt
+        let right = b:rightAlt
+    endif
+
+    let line = s:ReplaceDelims(g:NERDLPlace, g:NERDRPlace, left, right, a:line)
+    return line
+endfunction
+" Function: s:UnEsc(str, escChar) {{{2
+" This function removes all the escape chars from a string
+" Args:
+"   -str: the string to remove esc chars from
+"   -escChar: the escape char to be removed
+function s:UnEsc(str, escChar)
+    return substitute(a:str, a:escChar, "", "g")
+endfunction
+
+" Section: Comment mapping setup {{{1
+" ===========================================================================
+" This is where the mappings calls are made that set up the commenting key
+" mappings.
+
+" set up the mapping to switch to/from alternative delimiters 
+execute 'nnoremap <silent>' . g:NERDAltComMap . ' :call <SID>SwitchToAlternativeDelimiters(1)<cr>'
+
+" set up the mappings to comment out lines
+execute 'nnoremap <silent>' . g:NERDComLineMap . ' :call NERDComment(0, "norm")<cr>'
+execute 'vnoremap <silent>' . g:NERDComLineMap . ' <ESC>:call NERDComment(1, "norm")<cr>'
+
+" set up the mappings to do toggle comments
+execute 'nnoremap <silent>' . g:NERDComLineToggleMap . ' :call NERDComment(0, "toggle")<cr>'
+execute 'vnoremap <silent>' . g:NERDComLineToggleMap . ' <ESC>:call NERDComment(1, "toggle")<cr>'
+
+" set up the mapp to do minimal comments
+execute 'nnoremap <silent>' . g:NERDComLineMinimalMap . ' :call NERDComment(0, "minimal")<cr>'
+execute 'vnoremap <silent>' . g:NERDComLineMinimalMap . ' <ESC>:call NERDComment(1, "minimal")<cr>'
+
+" set up the mappings to comment out lines sexily
+execute 'nnoremap <silent>' . g:NERDComLineSexyMap . ' :call NERDComment(0, "sexy")<CR>'
+execute 'vnoremap <silent>' . g:NERDComLineSexyMap . ' <ESC>:call NERDComment(1, "sexy")<CR>'
+
+" set up the mappings to do invert comments
+execute 'nnoremap <silent>' . g:NERDComLineInvertMap . ' :call NERDComment(0, "invert")<CR>'
+execute 'vnoremap <silent>' . g:NERDComLineInvertMap . ' <ESC>:call NERDComment(1, "invert")<CR>'
+
+" set up the mappings to yank then comment out lines
+execute 'nmap <silent>' . g:NERDComLineYankMap . ' "0Y' . g:NERDComLineMap 
+execute 'vmap <silent>' . g:NERDComLineYankMap . ' "0ygv' . g:NERDComLineMap
+
+" set up the mappings for left aligned comments 
+execute 'nnoremap <silent>' . g:NERDComAlignLeftMap . ' :call NERDComment(0, "alignLeft")<cr>'
+execute 'vnoremap <silent>' . g:NERDComAlignLeftMap . ' <ESC>:call NERDComment(1, "alignLeft")<cr>'
+
+" set up the mappings for right aligned comments 
+execute 'nnoremap <silent>' . g:NERDComAlignRightMap . ' :call NERDComment(0, "alignRight")<cr>'
+execute 'vnoremap <silent>' . g:NERDComAlignRightMap . ' <ESC>:call NERDComment(1, "alignRight")<cr>'
+
+" set up the mappings for left and right aligned comments 
+execute 'nnoremap <silent>' . g:NERDComAlignBothMap . ' :call NERDComment(0, "alignBoth")<cr>'
+execute 'vnoremap <silent>' . g:NERDComAlignBothMap . ' <ESC>:call NERDComment(1, "alignBoth")<cr>'
+
+" set up the mappings to do nested comments 
+execute 'nnoremap <silent>' . g:NERDComLineNestMap . ' :call NERDComment(0, "nested")<cr>'
+execute 'vnoremap <silent>' . g:NERDComLineNestMap . ' <ESC>:call NERDComment(1, "nested")<cr>'
+
+" set up the mapping to uncomment a line 
+execute 'nnoremap <silent>' . g:NERDUncomLineMap . ' :call NERDComment(0, "uncomment")<cr>'
+execute 'vnoremap <silent>' . g:NERDUncomLineMap . ' :call NERDComment(1, "uncomment")<cr>'
+
+" set up the mapping to comment out to the end of the line
+execute 'nnoremap <silent>' . g:NERDComToEOLMap . ' :call NERDComment(0, "toEOL")<cr>'
+
+" set up the mappings to append comments to the line
+execute 'nmap <silent>' . g:NERDAppendComMap . ' :call NERDComment(0, "append")<cr>'
+
+" set up the mappings to append comments to the line
+execute 'nmap <silent>' . g:NERDPrependComMap . ' :call NERDComment(0, "prepend")<cr>'
+
+" set up the mapping to insert comment delims at the cursor position in insert mode
+execute 'inoremap <silent>' . g:NERDComInInsertMap . ' ' . '<SPACE><BS><ESC>:call NERDComment(0, "insert")<CR>'
+
+" Section: Menu item setup {{{1
+" ===========================================================================
+"check if the user wants the menu to be displayed 
+if g:NERDMenuMode != 0
+
+    let menuRoot = ""
+    if g:NERDMenuMode == 1
+        let menuRoot = 'comment'
+    elseif g:NERDMenuMode == 2
+        let menuRoot = '&comment'
+    elseif g:NERDMenuMode == 3
+        let menuRoot = '&Plugin.&comment'
+    endif
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment<TAB>' . escape(g:NERDComLineMap, '\') . ' :call NERDComment(0, "norm")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment<TAB>' . escape(g:NERDComLineMap, '\') . ' <ESC>:call NERDComment(1, "norm")<CR>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ Toggle<TAB>' . escape(g:NERDComLineToggleMap, '\') . ' :call NERDComment(0, "toggle")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment\ Toggle<TAB>' . escape(g:NERDComLineToggleMap, '\') . ' <ESC>:call NERDComment(1, "toggle")<CR>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ Minimal<TAB>' . escape(g:NERDComLineMinimalMap, '\') . ' :call NERDComment(0, "minimal")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment\ Minimal<TAB>' . escape(g:NERDComLineMinimalMap, '\') . ' <ESC>:call NERDComment(1, "minimal")<CR>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ Nested<TAB>' . escape(g:NERDComLineNestMap, '\') . ' :call NERDComment(0, "nested")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment\ Nested<TAB>' . escape(g:NERDComLineNestMap, '\') . ' <ESC>:call NERDComment(1, "nested")<CR>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ To\ EOL<TAB>' . escape(g:NERDComToEOLMap, '\') . ' :call NERDComment(0, "toEOL")<cr>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ Invert<TAB>' . escape(g:NERDComLineInvertMap, '\') . ' :call NERDComment(0,"invert")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment\ Invert<TAB>' . escape(g:NERDComLineInvertMap, '\') . ' <ESC>:call NERDComment(1,"invert")<CR>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ Sexily<TAB>' . escape(g:NERDComLineSexyMap, '\') . ' :call NERDComment(0,"sexy")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment\ Sexily<TAB>' . escape(g:NERDComLineSexyMap, '\') . ' <ESC>:call NERDComment(1,"sexy")<CR>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Yank\ line(s)\ then\ comment<TAB>' . escape(g:NERDComLineYankMap, '\') . ' "0Y' . g:NERDComLineMap 
+    execute 'vmenu <silent> '. menuRoot .'.Yank\ line(s)\ then\ comment<TAB>' . escape(g:NERDComLineYankMap, '\') . ' "0ygv' . g:NERDComLineMap
+
+    execute 'nmenu <silent> '. menuRoot .'.Append\ Comment\ to\ Line<TAB>' . escape(g:NERDAppendComMap, '\') . ' :call NERDComment(0, "append")<cr>'
+    execute 'nmenu <silent> '. menuRoot .'.Prepend\ Comment\ to\ Line<TAB>' . escape(g:NERDPrependComMap, '\') . ' :call NERDComment(0, "prepend")<cr>'
+
+    execute 'menu <silent> '. menuRoot .'.-Sep-    :'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ Align\ Left\ (nested)<TAB>' . escape(g:NERDComAlignLeftMap, '\') . ' :call NERDComment(0, "alignLeft")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment\ Align\ Left\ (nested)<TAB>' . escape(g:NERDComAlignLeftMap, '\') . ' <ESC>:call NERDComment(1, "alignLeft")<CR>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ Align\ Right\ (nested)<TAB>' . escape(g:NERDComAlignRightMap, '\') . ' :call NERDComment(0, "alignRight")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment\ Align\ Right\ (nested)<TAB>' . escape(g:NERDComAlignRightMap, '\') . ' <ESC>:call NERDComment(1, "alignRight")<CR>'
+
+    execute 'nmenu <silent> '. menuRoot .'.Comment\ Align\ Both\ (nested)<TAB>' . escape(g:NERDComAlignBothMap, '\') . ' :call NERDComment(0, "alignBoth")<CR>'
+    execute 'vmenu <silent> '. menuRoot .'.Comment\ Align\ Both\ (nested)<TAB>' . escape(g:NERDComAlignBothMap, '\') . ' <ESC>:call NERDComment(1, "alignBoth")<CR>'
+
+    execute 'menu <silent> '. menuRoot .'.-Sep2-    :'
+
+    execute 'menu <silent> '. menuRoot .'.Uncomment<TAB>' . escape(g:NERDUncomLineMap, '\') . ' :call NERDComment(0, "uncomment")<cr>'
+    execute 'vmenu <silent>' . menuRoot.'.Uncomment<TAB>' . escape(g:NERDUncomLineMap, '\') . ' <esc>:call NERDComment(1, "uncomment")<cr>'
+
+    execute 'menu <silent> '. menuRoot .'.-Sep3-    :'
+
+    execute 'nmenu <silent> '. menuRoot .'.Use\ Alternative\ Delimiters<TAB>' . escape(g:NERDAltComMap, '\') . ' :call <SID>SwitchToAlternativeDelimiters(1)<CR>'
+
+
+    execute 'imenu <silent> '. menuRoot .'.Insert\ Delims<TAB>' . escape(g:NERDComInInsertMap, '\') . ' <SPACE><BS><ESC>:call NERDComment(0, "insert")<CR>'
+
+    execute 'menu '. menuRoot .'.-Sep4-    :'
+
+    execute 'menu <silent>'. menuRoot .'.Help<TAB>:help\ NERDCommenterContents :help NERDCommenterContents<CR>'
+endif
+
+" Section: Doc installation call {{{1
+silent call s:InstallDocumentation(expand('<sfile>:p'), s:NERD_commenter_version)
+
+finish
+"=============================================================================
+" Section: The help file {{{1 
+" Title {{{2
+" ============================================================================
+=== START_DOC
+*NERD_commenter.txt*         Plugin for commenting code           #version#
+
+
+                        NERD COMMENTER REFERENCE MANUAL~
+
+
+
+
+
+==============================================================================
+CONTENTS {{{2                                          *NERDCommenterContents* 
+
+    1.Intro...................................|NERDCommenter|
+    2.Functionality provided..................|NERDComFunctionality|
+        2.1 Functionality Summary.............|NERDComFunctionalitySummary|
+        2.2 Functionality Details.............|NERDComFunctionalityDetails|
+            2.2.1 Comment map.................|NERDComComment|
+            2.2.2 Nested comment map..........|NERDComNestedComment|
+            2.2.3 Toggle comment map..........|NERDComToggleComment| 
+            2.2.4 Minimal comment map.........|NERDComMinimalComment| 
+            2.2.5 Invert comment map..........|NERDComInvertComment|
+            2.2.6 Sexy comment map............|NERDComSexyComment|
+            2.2.7 Yank comment map............|NERDComYankComment|
+            2.2.8 Comment to EOL map..........|NERDComEOLComment|
+            2.2.9 Append com to line map......|NERDComAppendComment|
+            2.2.10 Prepend com to line map....|NERDComPrependComment|
+            2.2.11 Insert comment map.........|NERDComInsertComment|
+            2.2.12 Use alternate delims map...|NERDComAltDelim|
+            2.2.13 Comment aligned maps.......|NERDComAlignedComment|
+            2.2.14 Uncomment line map.........|NERDComUncommentLine|
+        2.3 Supported filetypes...............|NERDComFiletypes|
+        2.4 Sexy Comments.....................|NERDComSexyComments|
+        2.5 The NERDComment function..........|NERDComNERDComment|
+    3.Options.................................|NERDComOptions|
+        3.1 Options summary...................|NERDComOptionsSummary|
+        3.2 Options details...................|NERDComOptionsDetails|
+        3.3 Default delimiter Options.........|NERDComDefaultDelims|
+        3.4 Key mapping Options...............|NERDComMappings|
+    4.Issues with the script..................|NERDComIssues|
+        4.1 Delimiter detection heuristics....|NERDComHeuristics|
+        4.2 Nesting issues....................|NERDComNesting|
+    5.TODO list...............................|NERDComTodo|
+    6.Changelog...............................|NERDComChangelog|
+    7.Credits.................................|NERDComCredits|
+
+==============================================================================
+1. Intro {{{2                                                  *NERDCommenter*
+
+The NERD commenter provides many different commenting operations and styles
+which may be invoked via key mappings and a commenting menu. These operations
+are available for most filetypes.
+
+There are also options available that allow you to tweak the commenting engine
+to you taste.
+
+==============================================================================
+2. Functionality provided {{{2                          *NERDComFunctionality*
+
+------------------------------------------------------------------------------
+2.1 Functionality summary {{{3                   *NERDComFunctionalitySummary*
+
+The following key mappings are provided by default (there is also a menu
+provided that contains menu items corresponding to all the below mappings):
+
+Most of the following mappings are for normal/visual mode only. The
+|NERDComInsertComment| mapping is for insert mode only.
+
+,cc |NERDComComment| 
+Comments out the current line or text selected in visual mode.
+
+
+,cn |NERDComNestedComment| 
+Same as |NERDComComment| but forces nesting.
+
+
+,c<space> |NERDComToggleComment| 
+Toggles the comment state of the selected line(s). If the topmost selected
+line is commented, all selected lines are uncommented and vice versa.
+
+
+,cm |NERDComMinimalComment| 
+Comments the given lines using only one set of multipart delimiters if
+possible. 
+
+
+,ci |NERDComInvertComment| 
+Toggles the comment state of the selected line(s) individually. Each selected
+line that is commented is uncommented and vice versa.
+
+
+,cs |NERDComSexyComment| 
+Comments out the selected lines ``sexually''
+
+
+,cy |NERDComYankComment|
+Same as |NERDComComment| except that the commented line(s) are yanked
+before commenting.
+
+
+,c$ |NERDComEOLComment| 
+Comments the current line from the cursor to the end of line.
+
+
+,cA |NERDComAppendComment| 
+Adds comment delimiters to the end of line and goes into insert mode between
+them.
+
+
+,cI |NERDComPrependComment| 
+Adds comment delimiters to the start of line and goes into insert mode between
+them.
+
+
+<C-c> |NERDComInsertComment| 
+Adds comment delimiters at the current cursor position and inserts between.
+
+
+,ca |NERDComAltDelim| 
+Switches to the alternative set of delimiters.
+
+
+,cl OR ,cr OR ,cb |NERDComAlignedComment| 
+Same as |NERDComComment| except that the delimiters are aligned down the
+left side (,cl), the right side (,cr) or both sides
+(,cb).
+
+
+,cu |NERDComUncommentLine| 
+Uncomments the selected line(s).
+
+------------------------------------------------------------------------------
+2.2 Functionality details {{{3                   *NERDComFunctionalityDetails*
+
+------------------------------------------------------------------------------
+2.2.1 Comment map                                             *NERDComComment*
+
+Default mapping: ,cc
+Change the mapping with: NERDComLineMap. 
+Applicable modes: normal visual visual-line visual-block.  
+
+
+Comments out the current line. If multiple lines are selected in visual-line
+mode, they are all commented out.  If some text is selected in visual or
+visual-block mode then the script will try to comment out the exact text that
+is selected using multi-part delimiters if they are available.
+
+
+------------------------------------------------------------------------------
+2.2.2 Nested comment map                                *NERDComNestedComment*
+
+Default mapping: ,cn
+Change the mapping with: NERDComLineNestMap.
+Applicable modes: normal visual visual-line visual-block.
+
+Performs nested commenting.  Works the same as ,cc except that if a
+line is already commented then it will be commented again. 
+
+If |NERDUsePlaceHolders| is set then the previous comment delimiters will
+be replaced by place-holder delimiters if needed.  Otherwise the nested
+comment will only be added if the current commenting delimiters have no right
+delimiter (to avoid syntax errors) 
+
+
+Related options:
+|NERDDefaultNesting|
+
+------------------------------------------------------------------------------
+2.2.3 Toggle comment map                                *NERDComToggleComment* 
+
+Default mapping: ,c<space> 
+Change the mapping with: NERDComLineToggleMap.
+Applicable modes: normal visual-line.
+
+Toggles commenting of the lines selected. The behaviour of this mapping
+depends on whether the first line selected is commented or not.  If so, all
+selected lines are uncommented and vice versa. 
+
+With this mapping, a line is only considered to be commented if it starts with
+a left delimiter.
+
+------------------------------------------------------------------------------
+2.2.4 Minimal comment map                              *NERDComMinimalComment* 
+
+Default mapping: ,cm
+Change the mapping with: NERDComLineMinimalMap
+Applicable modes: normal visual-line.
+
+Comments the selected lines using one set of multipart delimiters if possible.
+
+For example: if you are programming in c and you select 5 lines and press
+,cm then a '/*' will be placed at the start of the top line and a '*/'
+will be placed at the end of the last line.
+
+Sets of multipart comment delimiters that are between the top and bottom
+selected lines are replaced with place holders (see |NERDLPlace|) if
+|NERDUsePlaceHolders| is set for the current filetype. If it is not, then
+the comment will be aborted if place holders are required to prevent illegal
+syntax.
+
+------------------------------------------------------------------------------
+2.2.5 Invert comment map                                *NERDComInvertComment*
+
+Default mapping: ,ci 
+Change the mapping with: NERDComLineInvertMap.
+Applicable modes: normal visual-line.
+
+Inverts the commented state of each selected line. If the a selected line is
+commented then it is uncommented and vice versa. Each line is examined and
+commented/uncommented individually. 
+
+With this mapping, a line is only considered to be commented if it starts with
+a left delimiter.
+
+------------------------------------------------------------------------------
+2.2.6 Sexy comment map                                    *NERDComSexyComment*
+
+Default mapping: ,cs  
+Change the mapping with: NERDComLineSexyMap
+Applicable modes: normal, visual-line.
+
+Comments the selected line(s) ``sexily''... see |NERDComSexyComments| for
+a description of what sexy comments are. Can only be done on filetypes for
+which there is at least one set of multipart comment delimiters specified. 
+
+Sexy comments cannot be nested and lines inside a sexy comment cannot be
+commented again.
+
+Related options:
+|NERDCompactSexyComs|
+
+------------------------------------------------------------------------------
+2.2.7 Yank comment map                                    *NERDComYankComment*
+
+Default mapping: ,cy  
+Change the mapping with: NERDComLineYankMap
+Applicable modes: normal visual visual-line visual-block.
+
+Same as ,cc except that it yanks the line(s) that are commented first. 
+
+------------------------------------------------------------------------------
+2.2.8 Comment to EOL map                                   *NERDComEOLComment*
+
+Default mapping: ,c$ 
+Change the mapping with: NERDComToEOLMap 
+Applicable modes: normal.
+
+Comments the current line from the current cursor position up to the end of
+the line. 
+
+------------------------------------------------------------------------------
+2.2.9 Append com to line map                            *NERDComAppendComment*
+
+Default mapping: ,cA      
+Change the mapping with: NERDAppendComMap. 
+Applicable modes: normal.
+
+Appends comment delimiters to the end of the current line and goes
+to insert mode between the new delimiters.  
+
+------------------------------------------------------------------------------
+2.2.10 Prepend com to line map                         *NERDComPrependComment*
+
+Default mapping: ,cI
+Change the mapping with: NERDPrependComMap.
+Applicable modes: normal.
+
+Prepends comment delimiters to the start of the current line and goes to
+insert mode between the new delimiters.  
+
+------------------------------------------------------------------------------
+2.2.11 Insert comment map                               *NERDComInsertComment*
+
+Default mapping: <C-c>
+Change the mapping with: NERDComInInsertMap. 
+Applicable modes: insert.
+
+Adds comment delimiters at the current cursor position and inserts
+between them. 
+
+------------------------------------------------------------------------------
+2.2.12 Use alternate delims map                              *NERDComAltDelim*
+
+Default mapping: ,ca
+Change the mapping with: NERDAltComMap
+Applicable modes: normal.
+
+Changes to the alternative commenting style if one is available. For example,
+if the user is editing a c++ file using // comments and they hit ,ca
+then they will be switched over to /**/ comments.  
+
+See also |NERDComDefaultDelims|
+
+------------------------------------------------------------------------------
+2.2.13 Comment aligned maps                            *NERDComAlignedComment*
+
+Default mappings: ,cl ,cr ,cb    
+Change the mappings with: NERDComAlignLeftMap, NERDComAlignRightMap and
+NERDComAlignBothMap.
+Applicable modes: normal visual-line.
+
+Same as ,cc except that the comment delimiters are aligned on the left
+side, right side or both sides respectively. These comments are always nested
+if the line(s) are already commented. 
+
+------------------------------------------------------------------------------
+2.2.14 Uncomment line map                               *NERDComUncommentLine*
+
+Default mapping: ,cu      
+Change the mapping with: NERDUncomLineMap.
+Applicable modes: normal visual visual-line visual-block.
+
+Uncomments the current line. If multiple lines are selected in
+visual mode then they are all uncommented.
+
+When uncommenting, if the line contains multiple sets of delimiters then the
+``outtermost'' pair of delimiters will be removed.
+
+The script uses a set of heurisics to distinguish ``real'' delimiters from
+``fake'' ones when uncommenting. See |NERDComIssues| for details.
+
+Related  options:
+|NERDRemoveAltComs|
+|NERDRemoveExtraSpaces|
+
+------------------------------------------------------------------------------
+2.3 Supported filetypes {{{3                                *NERDComFiletypes*
+
+Filetypes that can be commented by this plugin:
+abaqus abc acedb ada ahdl amiga aml ampl ant apache apachestyle asm68k asm asn
+aspvbs atlas autohotkey autoit automake ave awk basic b bc bdf bib bindzone bst
+btm caos catalog c cfg cg ch changelog cl clean clipper cmake conf config
+context cpp crontab cs csc csp css cterm cupl csv cvs dcl debchangelog
+debcontrol debsources def diff django docbk dns dosbatch dosini dot dracula dsl
+dtd dtml dylan ecd eiffel elf elmfilt erlang eruby eterm expect exports
+fetchmail fgl focexec form fortran foxpro fstab fvwm fx gdb gdmo geek
+gentoo-package-keywords' gentoo-package-mask' gentoo-package-use' gnuplot gtkrc
+haskell hb h help hercules hog html htmldjango htmlos ia64 icon idlang idl
+indent inform inittab ishd iss ist jam java javascript jess jgraph jproperties
+jproperties jsp kconfig kix kscript lace lex lftp lifelines lilo lisp lite
+lotos lout lprolog lscript lss lua lynx m4 mail make maple masm master matlab
+mel mf mib mma model moduala.  modula2 modula3 monk mush muttrc named nasm
+nastran natural ncf netdict netrw nqc nroff nsis ocaml occam omlet omnimark
+openroad opl ora otl ox pascal passwd pcap pccts perl pfmain php phtml pic pike
+pilrc pine plaintex plm plsql po postscr pov povini ppd ppwiz procmail progress
+prolog psf ptcap python python qf radiance ratpoison r rc readline rebol
+registry remind rexx robots rpl rtf ruby sa samba sas sather scheme scilab
+screen scsh sdl sed selectbuf sgml sgmldecl sgmllnx sicad simula sinda skill
+slang sl slrnrc sm smarty smil smith sml snnsnet snnspat snnsres snobol4 spec
+specman spice sql sqlforms sqlj sqr squid st stp strace svn systemverilog tads
+taglist tags tak tasm tcl terminfo tex text plaintex texinfo texmf tf tidy tli
+trasys tsalt tsscl tssgm uc uil vb verilog verilog_systemverilog vgrindefs vhdl
+vim viminfo virata vo_base vrml vsejcl webmacro wget winbatch wml [^w]*sh
+wvdial xdefaults xf86conf xhtml xkb xmath xml xmodmap xpm2 xpm xslt yacc yaml
+z8a 
+
+If a language is not in the list of hardcoded supported filetypes then the
+&commentstring vim option is used.
+
+------------------------------------------------------------------------------
+2.4 Sexy Comments {{{3                                   *NERDComSexyComments*
+These are comments that use one set of multipart comment delimiters as well as
+one other marker symbol. For example: >
+    /*
+     * This is a c style sexy comment
+     * So there!
+     */
+
+    /* This is a c style sexy comment
+     * So there! 
+     * But this one is ``compact'' style */
+<
+Here the multipart delimiters are /* and */ and the marker is *. The NERD
+commenter is capable of adding and removing comments of this type.
+
+------------------------------------------------------------------------------
+2.5 The NERDComment function {{{3                        *NERDComNERDComment*
+
+All of the NERD commenter mappings and menu items invoke a single function
+which delegates the commenting work to other functions. This function is
+public and has the prototype: >
+    function! NERDComment(isVisual, type) 
+<
+The arguments to this function are simple: 
+    - isVisual: if you wish to do any kind of visual comment then set this to
+      1 and the function will use the '< and '> marks to find the comment
+      boundries. If set to 0 then the function will operate on the current
+      line.
+    - type: is used to specify what type of commenting operation is to be
+      performed, and it can be one of the following: 'sexy', 'invert',
+      'minimal', 'toggle', 'alignLeft', 'alignRight', 'alignBoth', 'norm',
+      'nested', 'toEOL', 'prepend', 'append', 'insert', 'uncomment'
+
+For example, if you typed >
+    :call NERDComment(1, 'sexy')
+<
+then the script would do a sexy comment on the last visual selection.
+ 
+
+==============================================================================
+3. Options {{{2                                               *NERDComOptions*
+
+------------------------------------------------------------------------------
+3.1 Options summary                                    *NERDComOptionsSummary*
+
+|loaded_nerd_comments|                Turns off the script.
+|NERDAllowAnyVisualDelims|            Allows multipart alternative delims to
+                                      be used when commenting in
+                                      visual/visual-block mode.
+|NERDBlockComIgnoreEmpty|             Forces right delims to be placed when
+                                      doing visual-block comments.
+|NERDCommentWholeLinesInVMode|        Changes behaviour of visual comments.
+|NERDDefaultNesting|                  Tells the script to use nested comments
+                                      by default.
+|NERDMenuMode|                        Specifies how the NERD commenter menu
+                                      will appear (if at all).
+|NERDLPlace|                          Specifies what to use as the left
+                                      delimiter placeholder when nesting
+                                      comments.
+|NERDMapleader|                       Specifies what all the commenting key
+                                      mappings will begin with.
+|NERDUsePlaceHolders|                 Specifies which filetypes may use
+                                      placeholders when nesting comments.
+|NERDRemoveAltComs|                   Tells the script whether to remove
+                                      alternative comment delimiters when
+                                      uncommenting.
+|NERDRemoveExtraSpaces|               Tells the script to always remove the
+                                      extra spaces when uncommenting
+                                      (regardless of whether NERDSpaceDelims
+                                      is set) 
+|NERDRPlace|                          Specifies what to use as the right
+                                      delimiter placeholder when nesting
+                                      comments.
+|NERDShutUp|                          Stops "Unknown filetype" output from the
+                                      script
+|NERDSpaceDelims|                     Specifies whether to add extra spaces
+                                      around delimiters when commenting, and
+                                      whether to remove them when
+                                      uncommenting.
+|NERDCompactSexyComs|                 Specifies whether to use the compact
+                                      style sexy comments.
+
+------------------------------------------------------------------------------
+3.3 Options details                                    *NERDComOptionsDetails*
+
+To enable any of the below options you should put the given line in your 
+~/.vimrc
+
+                                                       *loaded_nerd_comments*
+If this script is driving you insane you can turn it off by setting this
+option >
+    let loaded_nerd_comments=1
+<
+------------------------------------------------------------------------------
+                                                    *NERDAllowAnyVisualDelims*
+Values: 0 or 1.                            
+Default: 1.
+
+If set to 1 then, when doing a visual or visual-block comment (but not a
+visual-line comment), the script will choose the right delimiters to use for
+the comment. This means either using the current delimiters if they are
+multipart or using the alternative delimiters if THEY are multipart.  For
+example if we are editing the following java code: >
+    float foo = 1221;
+    float bar = 324;
+    System.out.println(foo * bar);
+<
+If we are using // comments and select the "foo" and "bar" in visual-block
+mode, as shown left below (where '|'s are used to represent the visual-block 
+boundary), and comment it then the script will use the alternative delims as
+shown on the right: >
+
+    float |foo| = 1221;                   float /*foo*/ = 1221;
+    float |bar| = 324;                    float /*bar*/ = 324;
+    System.out.println(foo * bar);        System.out.println(foo * bar);
+<
+------------------------------------------------------------------------------
+                                                     *NERDBlockComIgnoreEmpty*
+Values: 0 or 1.                            
+Default: 1.
+
+This option  affects visual-block mode commenting. If this option is turned
+on, lines that begin outside the right boundary of the selection block will be
+ignored.
+
+For example, if you are commenting this chunk of c code in visual-block mode
+(where the '|'s are used to represent the visual-block boundary) >
+    #include <sys/types.h>
+    #include <unistd.h>
+    #include <stdio.h>
+   |int| main(){
+   |   | printf("SUCK THIS\n");
+   |   | while(1){
+   |   |     fork();
+   |   | }
+   |}  | 
+<
+If NERDBlockComIgnoreEmpty=0 then this code will become: >
+    #include <sys/types.h>
+    #include <unistd.h>
+    #include <stdio.h>
+    /*int*/ main(){
+    /*   */ printf("SUCK THIS\n");
+    /*   */ while(1){
+    /*   */     fork();
+    /*   */ }
+    /*}  */ 
+<
+Otherwise, the code block would become: >
+    #include <sys/types.h>
+    #include <unistd.h>
+    #include <stdio.h>
+    /*int*/ main(){
+    printf("SUCK THIS\n");
+    while(1){
+        fork();
+    }
+    /*}  */ 
+<
+------------------------------------------------------------------------------
+                                                *NERDCommentWholeLinesInVMode*
+Values: 0, 1 or 2.
+Default: 0.
+
+By default the script tries to comment out exactly what is selected in visual
+mode (v). For example if you select and comment the following c code (using |
+to represent the visual boundary): >
+    in|t foo = 3;
+    int bar =| 9;
+    int baz = foo + bar;
+<
+This will result in: >
+    in/*t foo = 3;*/
+    /*int bar =*/ 9;
+    int baz = foo + bar;
+<
+But some people prefer it if the whole lines are commented like: >
+    /*int foo = 3;*/
+    /*int bar = 9;*/
+    int baz = foo + bar;
+<
+If you prefer the second option then stick this line in your vimrc: >
+    let NERDCommentWholeLinesInVMode=1
+<
+
+If the filetype you are editing only has no multipart delimiters (for example
+a shell script) and you hadnt set this option then the above would become >
+    in#t foo = 3;
+    #int bar = 9;
+<
+(where # is the comment delimiter) as this is the closest the script can
+come to commenting out exactly what was selected. If you prefer for whole
+lines to be commented out when there is no multipart delimiters but the EXACT
+text that was selected to be commented out if there IS multipart delimiters
+then stick the following line in your vimrc: >
+    let NERDCommentWholeLinesInVMode=2
+<
+
+Note that this option does not affect the behaviour of |visual-block| mode.
+
+------------------------------------------------------------------------------
+                                                           *NERDRemoveAltComs*
+Values: 0 or 1.
+Default: 1.
+
+When uncommenting a line (for a filetype with an alternative commenting style)
+this option tells the script whether to look for, and remove, comments
+delimiters of the alternative style.
+
+For example, if you are editing a c++ file using // style comments and you go
+,cu on this line: >
+    /* This is a c++ comment baby! */
+<
+It will not be uncommented if the NERDRemoveAltComs is set to 0.
+
+------------------------------------------------------------------------------
+                                                       *NERDRemoveExtraSpaces*
+Values: 0 or 1.
+Default: 1.
+
+By default, the NERD commenter will remove spaces around comment delimiters if
+either:
+1. |NERDSpaceDelims| is set to 1.
+2. NERDRemoveExtraSpaces is set to 1.
+
+This means that if we have the following lines in a c code file: >
+    /* int foo = 5; */
+    /* int bar = 10; */
+    int baz = foo + bar
+<
+If either of the above conditions hold then if these lines are uncommented
+they will become: >
+    int foo = 5;
+    int bar = 10;
+    int baz = foo + bar
+<
+Otherwise they would become: >
+     int foo = 5;
+     int bar = 10;
+    int baz = foo + bar
+<
+If you want the spaces to be removed only if |NERDSpaceDelims| is set then
+set NERDRemoveExtraSpaces to 0.
+
+------------------------------------------------------------------------------
+                                                                  *NERDLPlace*
+                                                                  *NERDRPlace*
+Values: arbitrary string.
+Default: 
+    NERDLPlace: "[>"
+    NERDRPlace: "<]"
+
+These options are used to control the strings used as place-holder delimiters.
+Place holder delimiters are used when performing nested commenting when the
+filetype supports commenting styles with both left and right delimiters.
+To set these options use lines like: >
+    let NERDLPlace="FOO" 
+    let NERDRPlace="BAR" 
+<
+Following the above example, if we have line of c code: >
+    /* int horse */
+<
+and we comment it with ,cn it will be changed to: >
+    /*FOO int horse BAR*/
+<
+When we uncomment this line it will go back to what it was.
+
+------------------------------------------------------------------------------
+                                                               *NERDMapleader*
+Values: arbitrary string.
+Default: \c
+
+NERDMapleader is used to specify what all the NERD commenter key mappings
+begin with. 
+
+The default key mappings will look like this: >
+    \cc
+    \cu
+    \ca
+    \ci
+    \cs
+    ...
+<
+However, if this line: >
+    let NERDMapleader = ',x'
+<
+were present in your vimrc then the default mappings would look like this: >
+    ,xc
+    ,xu
+    ,xa
+    ,xi
+    ,xs
+    ...
+<
+This option only affects the mappings that have not been explicitly set
+manually (see |NERDComMappings|).
+
+------------------------------------------------------------------------------
+                                                                *NERDMenuMode*
+Values: 0, 1, 2, 3.
+Default: 3
+
+This option can take 4 values:
+    "0": Turns the menu off.
+    "1": Turns the 'comment' menu on with no menu shortcut.
+    "2": Turns the 'comment 'menu on with <alt>-c as the shortcut.
+    "3": Turns the 'Plugin -> comment' menu on with <alt>-c as the shortcut.
+    
+------------------------------------------------------------------------------
+                                                         *NERDUsePlaceHolders*
+Values: 0 or 1.
+Default 1.
+
+This option is used to specify whether place-holder delimiters should be used
+when adding nested comments.
+
+------------------------------------------------------------------------------
+                                                                  *NERDShutUp*
+Values: 0 or 1.
+Default 1.
+
+This option is used to prevent the script from echoing "Unknown filetype"
+messages.  Stick this line in your vimrc: >
+    let NERDShutUp=1
+<
+------------------------------------------------------------------------------
+                                                             *NERDSpaceDelims*
+Values: 0 or 1.
+Default 0.
+
+Some people prefer a space after the left delimiter and before the right
+delimiter like this: >
+    /* int foo=2; */
+<
+as opposed to this: >
+    /*int foo=2;*/
+<
+If you want spaces to be added then set NERDSpaceDelims to 1 in your vimrc.
+
+See also |NERDRemoveExtraSpaces|.
+
+------------------------------------------------------------------------------
+                                                         *NERDCompactSexyComs*
+Values: 0 or 1.
+Default 0.
+
+Some people may want their sexy comments to be like this: >
+    /* Hi There!
+     * This is a sexy comment
+     * in c */
+<
+As opposed to like this: >
+    /* 
+     * Hi There!
+     * This is a sexy comment
+     * in c 
+     */
+<
+If this option is set to 1 then the top style will be used.
+
+------------------------------------------------------------------------------
+                                                          *NERDDefaultNesting*
+Values: 0 or 1.
+Default 0.
+
+When this option is set to 1, comments are nested automatically. That is, if
+you hit ,cc on a line that is already commented it will be commented
+again
+
+------------------------------------------------------------------------------
+3.3 Default delimiter customisation                     *NERDComDefaultDelims*
+
+If you want the NERD commenter to use the alternative delimiters for a
+specific filetype by default then put a line of this form into your vimrc: >
+    let NERD_<&filetype>_alt_style=1
+<
+Example: java uses // style comments by default, but you want it to default to
+/* */ style comments instead. You would put this line in your vimrc: >
+    let NERD_java_alt_style=1
+<
+
+See |NERDComAltDelim| for switching commenting styles at runtime.
+
+------------------------------------------------------------------------------
+3.4 Key mapping customisation                                *NERDComMappings*
+
+These options are used to override the default keys that are used for the
+commenting mappings. Their values must be set to strings. As an example: if
+you wanted to use the mapping ,foo to uncomment lines of code then 
+you would place this line in your vimrc >
+    let NERDUncomLineMap=",foo"
+<
+Check out |NERDComFunctionality| for details about what the following 
+mappings do.
+
+Default Mapping     Option to override~
+
+,ca                 NERDAltComMap
+,ce                 NERDAppendComMap
+,cl                 NERDComAlignLeftMap
+,cb                 NERDComAlignBothMap
+,cr                 NERDComAlignRightMap
+<C-c>               NERDComInInsertMap
+,ci                 NERDComLineInvertMap
+,cc                 NERDComLineMap
+,cn                 NERDComLineNestMap
+,cs                 NERDComLineSexyMap
+,c<space>           NERDComLineToggleMap
+,cm                 NERDComLineMinimalMap
+,c$                 NERDComToEOLMap
+,cy                 NERDComLineYankMap
+,cu                 NERDUncomLineMap
+                 
+==============================================================================
+4. Issues with the script{{{2                                  *NERDComIssues*
+
+
+------------------------------------------------------------------------------
+4.1 Delimiter detection heuristics                         *NERDComHeuristics*
+
+Heuristics are used to distinguish the real comment delimiters
+
+Because we have comment mappings that place delimiters in the middle of lines,
+removing comment delimiters is a bit tricky. This is because if comment
+delimiters appear in a line doesnt mean they really ARE delimiters. For
+example, Java uses // comments but the line >
+    System.out.println("//");
+<
+clearly contains no real comment delimiters. 
+
+To distinguish between ``real'' comment delimiters and ``fake'' ones we use a
+set of heuristics. For example, one such heuristic states that any comment
+delimiter that has an odd number of non-escaped " characters both preceding
+and following it on the line is not a comment because it is probably part of a
+string. These heuristics, while usually pretty accurate, will not work for all
+cases.
+
+------------------------------------------------------------------------------
+4.2 Nesting issues                                            *NERDComNesting*
+
+If we have some line of code like this: >
+    /*int foo */ = /*5 + 9;*/
+<
+This will not be uncommented legally. The NERD commenter will remove the
+"outter most" delimiters so the line will become: >
+    int foo */ = /*5 + 9;
+<
+which almost certainly will not be what you want. Nested sets of comments will
+uncomment fine though. Eg: >
+    /*int/* foo =*/ 5 + 9;*/
+<
+will become: >
+    int/* foo =*/ 5 + 9;
+<
+(Note that in the above examples I have deliberately not used place holders
+for simplicity)
+
+==============================================================================
+5. TODO list {{{2                                                *NERDComTodo*
+
+Uncommenting of minimal comments needs to be more robust. Currently it is easy
+to get illegal syntax when uncommenting them.
+
+
+
+==============================================================================
+6. Changelog {{{2                                           *NERDComChangelog*
+
+2.0.7
+    - Added support for eclass and ebuild filetypes. Thanks to Alex Tarkovsky
+      for the email.
+
+2.0.6
+    - Changed the default setting of NERDMapleader to ",c", meaning all the
+      maps now start with ,c instead of \c. This is to stop a major mapping
+      clash with the vcscommand plugin. Anyone wanting to keep the \c map
+      leader should read :help NERDMapleader.
+    - Added support for debcontrol and dummy support for debchangelog
+      filetypes, thanks to Stefano Zacchiroli for the email.
+    - Made it so that the NERDShutUp option now only controls the "Pleeease
+      email the delimiters..." requests. It no longer affects the general
+      output of the script.
+    - Simplified the names of the help tags. 
+
+2.0.5
+    - Added support for autoit, autohotkey and docbk filetypes (thanks to
+      Michael Böhler)
+    - Added support for cmake (thanks to Aaron Small)
+    - Added support for htmldjango and django filetypes (thanks to Ramiro
+      Morales)
+    - Improved the delimiters for eruby again
+    - Applied a patch from Seth Mason to fix some pathing issues with the help
+      file installation.
+
+2.0.4
+    - Added support for verilog_systemverilog and systemverilog filetypes
+      (Thanks to Alexey for the email)
+    - Added support for fstab, thanks to Lizendir for the email.
+    - Added support for the smarty filetype.
+    - Improved the delimiters for eruby.
+    - Added dummy support for changelog filetype.
+
+2.0.3
+    - Added dummy support for the csv filetype (thx to Mark Woodward for the
+      email)
+    - Added dummy support for vo_base and otl filetypes (thanks to fREW for
+      the email)
+
+2.0.2:
+    - Minor bug fix that was stopping nested comments from working
+
+2.0.1:
+    - Fixed the visual bell for the |NERDComToEOLMap| map.
+    - Added another possible value to the NERDMenuMode option which causes the
+      menu to be displayed under 'Plugin -> Comment'. See :h NERDMenuMode.
+      This new menu mode is now the default.
+    - Added support for the occam filetype (thanks to Anders for emailing me)
+    - Made the main commenting function (NERDComment) available outside the
+      script.
+    - bug fixes and refactoring
+
+2.0.0:
+    - NOTE: renamed the script to  NERD_commenter.vim. When you install this
+      version you must delete the old files: NERD_comments.vim and 
+      NERD_comments.txt.
+    - Reworked the mappings and main entry point function for the script to
+      avoid causing visual-bells and screen scrolling.
+    - Changes to the script options (see |NERD_com-Customisation| for
+      details):
+        - They are all camel case now instead of underscored.
+        - Converted all of the regular expression options into simple boolean
+          options for simplicity.
+        - All the options are now stated positively, eg.
+          NERD_dont_remove_spaces_regexp has become NERDRemoveExtraSpaces.
+        - Some of the option names have been changed (other than in the above
+          ways)
+        - Some have been removed altogether, namely: NERD_create_h_filetype
+          (why was a commenting script creating a filetype?!),
+          NERD_left_align_regexp, NERD_right_align_regexp, 
+
+    - Removed all the NERD_use_alt_style_XXX_coms options and replaced them
+      with a better system. Now if a filetype has alternative delims, the
+      script will check whether an option of the form
+      "NERD_<&filetype>_alt_style" exists, and if it does then alt delims will
+      be used. See |NERD_com-cust-delims| for details.
+    - The script no longer removes extra spaces for sexy comments for the
+      NERDRemoveExtraSpaces option (it will still remove spaces if
+      NERDSpaceDelims is set).
+    - Added dummy support for viminfo and rtf.
+    - Added support for the "gentoo-package-\(keywords\|mask\|use\)"
+      filetypes.
+    - Added '#' comments as an alternative for the asm filetype
+
+Thanks to Markus Klinik and Anders for bug reports, and again to Anders
+for his patch. Thanks to John O'Shea and fREW for the filetype
+information.
+
+==============================================================================
+7. Credits {{{2                                               *NERDComCredits*
+
+Thanks and respect to the following people:
+
+Thanks to Nick Brettell for his many ideas and criticisms. A bloody good
+bastard.  
+:normal :.-2s/good//
+
+Thanks to Matthew Hawkins for his awesome refactoring!
+
+Thanks to the authors of the vimspell whose documentation 
+installation function I stole :)
+
+Thanks to Greg Searle for the idea of using place-holders for nested comments.
+
+Thanks to Nguyen for the suggestions and pointing the h file highlighting bug!
+Also, thanks for the idea of doing sexy comments as well as his suggestions
+relating to it :P 
+Thanks again to Nguyen for complaining about the NERD_comments menu mapping 
+(<Alt>-c) interfering with another mapping of his... and thus the 
+NERD_dont_create_menu_shortcut option was born :P
+(it was then replaced with NERD_menu_mode in version 1.67 :)
+
+Thanks to Sam R for pointing out some filetypes that NERD_comments could support!
+
+Cheers to Litchi for the idea of having a mapping that appends a comment to
+the current line :)
+
+Thanks to jorge scandaliaris and Shufeng Zheng for telling me about some
+problems with commenting in visual mode. Thanks again to Jorge for his
+continued suggestions on this matter :)
+
+Thanks to Martin Stubenschrott for pointing out a bug with the <C-c> mapping
+:) Ive gotta stop breaking this mapping!
+
+Thanks to Markus Erlmann for pointing out a conflict that this script was
+having with the taglist plugin.
+
+Thanks to Brent Rice for alerting me about, and helping me track down, a bug
+in the script when the "ignorecase" option in vim was set.
+
+Thanks to Richard Willis for telling me about how line continuation was
+causing problems on cygwin. Also, thanks pointing out a bug in the help file
+and for suggesting // comments for c (its about time SOMEONE did :P). May ANSI
+have mercy on your soul :)
+
+Thanks to Igor Prischepoff for suggesting that i implement "toggle comments".
+Also, thanks for his suggested improvements about toggle comments after i
+implemented them.
+
+Thanks to harry for telling me that i broke the <leader>cn mapping in 1.53 :),
+and thanks again for telling me about a bug that occurred when editing a file
+in a new tab.
+
+Thanks to Martin (Krischikim?) for his patch that fixed a bug with the doc
+install function and added support for ada comments with spaces as well as
+making a couple of other small changes.
+
+Thanks to David Bourgeois for pointing out a bug with when commenting c files
+:)... [a few days later] ok i completely  misunderstood what David was talking
+about and ended up fixing a completely different bug to what he was talking
+about :P
+
+Thanks to David Bourgeois for pointing out a bug when changing buffers.
+
+Cheers to Eike Von Seggern for sending me a patch to fix a bug in 1.60 that
+was causing spaces to be added to the end of lines with single-part
+delimiters. It's nice when people do my work for me :D
+
+Thanks to Torsten Blix for telling me about a couple of bugs when uncommenting
+sexy comments. Sexy comments dont look so sexy when they are only half removed
+:P
+
+Thanks to Alexander "boesi" Bosecke for pointing out a bug that was stopping
+the NERD_space_delim_filetype_regexp option from working with left aligned
+toggle comments. And for pointing out a bug when initialising VB comments. 
+
+Thanks to Stefano Zacchiroli for suggesting the idea of "Minimal comments".
+And for suggested improvements to minimal comments.
+
+Thanks to Norick Chen for emailing in a patch that fixed the asp delimiters.
+In 1.65
+
+Thanks to Jonathan Derque for alerting me to some filetypes that could be
+supported (Namely: context, plaintext and mail).
+
+Thanks to Joseph Barker for the sugesting that the menu be an optional
+feature.
+
+Thanks to Gary Church and Tim Carey-Smith for complaining about the
+keymappings and causing me to introduce the NERD_mapleader option :)
+
+Thanks to Vigil for pointing out that the "fetchmail" filetype was not
+supported and emailing me the delimiters        
+
+Thanks to Michael Brunner for telling me about the kconfig filetype.
+
+Thanks to Antono Vasiljev for telling me about the netdict filetype.
+
+Thanks to Melissa Reid for telling me about the omlet filetype.
+
+Thanks to Ilia N Ternovich for alerting me to the 'qf' (quickfix) filetype.
+
+Thanks to Markus Klinik for emailing me about a bug for sexy comments where
+spaces were being eaten.
+
+Thanks to John O'Shea for emailing me about the RTF filetype.
+
+Thanks to Anders for emailing me a patch to help get rid of all the visual
+bells and screen scrolling, and for sending me the delimiters for the occam
+filetype.
+
+Thanks to Anders and Markus Klinik for emailing me about the screen scrolling
+issues and finally getting me off my ass about them :P
+
+Thanks to Mark Woodward for emailing me about the csv filetype.
+
+Thanks to fREW for emailing me with the /gentoo-package-(mask|keywords|use)/
+filetypes the vo_base filetype.
+
+Thanks to Alexey for emailing me about the verilog_systemverilog/systemverilog
+filetypes.
+
+Cheers to Lizendir for the email about the fstab filetype
+
+Thanks to Michael Böhler for emailing me with the autoit, autohotkey and docbk
+filetypes.
+
+Thanks to Aaron Small for emailing me about the cmake filetype.
+
+Thanks to Ramiro for emailing me about the htmldjango and django filetypes.
+
+Thanks to Seth Mason for sending me a patch to fix some pathing issues for the
+help doc installation.
+
+Thanks to Stefano Zacchiroli for emailing me with the debcontrol and
+debchangelog filetypes.
+
+Thanks to Alex Tarkovsky for emailing me about the ebuild and eclass
+filetypes.
+
+Cheers to myself for being the best looking man on Earth!
+=== END_DOC
+" vim: set foldmethod=marker :

Modified: trunk/packages/vim-scripts/plugin/bufexplorer.vim
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/plugin/bufexplorer.vim?rev=995&op=diff
==============================================================================
--- trunk/packages/vim-scripts/plugin/bufexplorer.vim (original)
+++ trunk/packages/vim-scripts/plugin/bufexplorer.vim Tue Jul 24 07:47:16 2007
@@ -10,8 +10,8 @@
 " Name Of File: bufexplorer.vim
 "  Description: Buffer Explorer Vim Plugin
 "   Maintainer: Jeff Lanzarotta (delux256-vim at yahoo dot com)
-" Last Changed: Friday, 27 April 2007
-"      Version: See g:loaded_bufexplorer for version number.
+" Last Changed: Monday, 23 July 2007
+"      Version: See g:bufexplorer_version for version number.
 "        Usage: Normally, this file should reside in the plugins
 "               directory and be automatically sourced. If not, you must
 "               manually source this file using ':source bufexplorer.vim'.
@@ -34,16 +34,16 @@
 
 " Exit quickly when BufExplorer has already been loaded or when 'compatible'
 " is set.
-if exists("g:loaded_bufexplorer") || &cp
+if exists("g:bufexplorer_version") || &cp
   finish
 endif
 
 " Version number.
-let g:loaded_bufexplorer = "7.0.15"
+let g:bufexplorer_version = "7.0.17"
 
 " Check to make sure the Vim version 700 or greater.
 if v:version < 700
-  echo "Sorry, bufexplorer ".g:loaded_bufexplorer."\nONLY runs with Vim 7.0 and greater"
+  echo "Sorry, bufexplorer ".g:bufexplorer_version."\nONLY runs with Vim 7.0 and greater"
   finish
 endif
 
@@ -69,6 +69,7 @@
 call s:Set("g:bufExplorerReverseSort", 0) " Sort reverse?
 call s:Set("g:bufExplorerShowDirectories", 1) " Show directories? (Dir's are added by commands like ':e .')
 call s:Set("g:bufExplorerShowRelativePath", 0) " Show listings with relative or absolute paths?
+call s:Set("g:bufExplorerShowUnlisted", 0) " Show unlisted buffers?
 call s:Set("g:bufExplorerSortBy", "mru") " Sorting methods are in s:sort_by:
 call s:Set("g:bufExplorerSplitBelow", &splitbelow) " Show horizontal splits below or above?
 call s:Set("g:bufExplorerSplitHorzSize", 0) " Height for a horizontal split.
@@ -77,22 +78,31 @@
 call s:Set("g:bufExplorerSplitVertical", 0) " Show splits horizontal or vertical?
 call s:Set("g:bufExplorerSplitVertSize", 0) " Height for a vertical split.
 call s:Set("g:bufExplorerUseCurrentWindow", 0) " Open selected buffer in current or new window.
+
+" Variable initialization.
+let s:MRUList = []
+let s:running = 0
 let s:sort_by = ["number", "name", "fullpath", "mru", "extension"]
+let s:types = {"fullname": ':p', "path": ':p:h', "relativename": ':~:.', "relativepath": ':~:.:h', "shortname": ':t'}
 
 " Setup the autocommands that handle the MRUList and other stuff. {{{1
 augroup bufexplorer
   autocmd!
-  autocmd BufNew * call <SID>MRUPush()
-  autocmd BufEnter * call <SID>MRUPush()
+  autocmd BufEnter,BufNew * call <SID>MRUPush(bufnr("%"))
   autocmd BufEnter * call <SID>SetAltBufName()
-  autocmd BufDelete * call <SID>MRUPop()
+  autocmd BufDelete * call <SID>MRUPop(bufnr("%"))
   autocmd BufWinEnter \[BufExplorer\] call <SID>Initialize()
   autocmd BufWinLeave \[BufExplorer\] call <SID>Cleanup()
   autocmd VimEnter * call <SID>BuildMRU()
 augroup End
 
 " Create commands {{{1
-command BufExplorer :call <SID>StartBufExplorer("drop")
+if has("gui")
+  command BufExplorer :call <SID>StartBufExplorer("drop")
+else
+  command BufExplorer :call <SID>StartBufExplorer("edit")
+end
+
 command SBufExplorer  :call <SID>StartBufExplorer("sp")
 command VSBufExplorer :call <SID>StartBufExplorer("vsp")
 
@@ -100,9 +110,6 @@
 map <silent> <unique> <Leader>be :BufExplorer<CR>
 map <silent> <unique> <Leader>bs :SBufExplorer<CR>
 map <silent> <unique> <Leader>bv :VSBufExplorer<CR>
-
-let s:MRUList = []
-let s:running = 0
 
 " Winmanager Integration {{{1
 let g:BufExplorer_title = "\[Buf\ List\]"
@@ -210,7 +217,7 @@
     " Go to the open buffer.
     if has("gui")
       exec "drop" name
-    end
+    endif
 
     return
   endif
@@ -299,6 +306,7 @@
   nnoremap <buffer> <silent> s :call <SID>SortSelect()<cr>
   nnoremap <buffer> <silent> S :call <SID>SelectBuffer(1)<cr>
   nnoremap <buffer> <silent> t :call <SID>ToggleSplitType()<cr>
+  nnoremap <buffer> <silent> u :call <SID>ToggleShowUnlisted()<cr>
 
   for k in ["G", "n", "N", "L", "M", "H"]
     exec "nnoremap <buffer> <silent>" k ":keepjumps normal!" k."<cr>"
@@ -343,6 +351,7 @@
     hi def link bufExplorerHidBuf Constant
     hi def link bufExplorerLockedBuf Special
     hi def link bufExplorerModBuf Exception
+    hi def link bufExplorerUnlBuf Comment
   endif
 endfunction
 
@@ -377,7 +386,7 @@
   let header = []
 
   if g:bufExplorerDetailedHelp == 1
-    call add(header, '" Buffer Explorer ('.g:loaded_bufexplorer.')')
+    call add(header, '" Buffer Explorer ('.g:bufexplorer_version.')')
     call add(header, '" --------------------------')
     call add(header, '" <F1> : toggle this help')
     call add(header, '" <enter> or Mouse-Double-Click : open buffer under cursor')
@@ -394,6 +403,7 @@
     call add(header, '" R : toggle showing relative or full paths')
     call add(header, '" s : select sort field '.string(s:sort_by).'')
     call add(header, '" t : toggle split type')
+    call add(header, '" u : toggle showing unlisted buffers')
   else
     call add(header, '" Press <F1> for Help')
   endif
@@ -409,53 +419,40 @@
 " GetBufferList {{{1
 function s:GetBufferList()
   redir => bufoutput
-  buffers
+  buffers!
   redir END
 
-  let bufs = split(bufoutput, '\n')
-  let [all, widths, s:maxWidths] = [[], {}, {}]
-  let s:types = ["fullname", "relativename", "relativepath", "path", "shortname"]
-  for n in s:types
-    let widths[n] = []
+  let [all, allwidths, listedwidths] = [[], {}, {}]
+  for n in keys(s:types)
+    let allwidths[n] = []
+    let listedwidths[n] = []
   endfor
 
-  for buf in bufs
-    let b = {}
-    let bufName = matchstr(buf, '"\zs.\+\ze"')
-    let nameonly = fnamemodify(bufName, ":t")
-
-    if (nameonly =~ '^\[.\+\]')
-      let b["relativename"] = nameonly
-      let b["fullname"] = nameonly
-      let b["shortname"] = nameonly
-      let b["relativepath"] = ""
-      let b["path"] = ""
-    else
-      let b["relativename"] = fnamemodify(bufName, ':~:.')
-      let b["fullname"] = fnamemodify(bufName, ":p")
-
-      if getftype(b["fullname"]) == "dir" && g:bufExplorerShowDirectories == 1
-        let b["shortname"] = "<DIRECTORY>"
-      else
-        let b["shortname"] = fnamemodify(bufName, ":t")
-      end
-
-      let b["relativepath"] = fnamemodify(b["relativename"], ':h')
-      let b["path"] = fnamemodify(b["fullname"], ":h")
-    endif
-
-    let b["attributes"] = matchstr(buf, '^\zs.\{-1,}\ze"')
-    let b["line"] = matchstr(buf, 'line \d\+')
+  for buf in split(bufoutput, '\n')
+    let bits = split(buf, '"')
+    let b = {"attributes": bits[0], "line": substitute(bits[2], '\s*', '', '')}
+
+    for [key, val] in items(s:types)
+      let b[key] = fnamemodify(bits[1], val)
+    endfor
+    if getftype(b.fullname) == "dir" && g:bufExplorerShowDirectories == 1
+      let b.shortname = "<DIRECTORY>"
+    end
 
     call add(all, b)
 
-    for n in s:types
-      call add(widths[n], len(b[n]))
+    for n in keys(s:types)
+      call add(allwidths[n], len(b[n]))
+      if b.attributes !~ "u"
+        call add(listedwidths[n], len(b[n]))
+      endif
     endfor
   endfor
 
-  for n in s:types
-    let s:maxWidths[n] = max(widths[n])
+  let [s:allpads, s:listedpads] = [{}, {}]
+  for n in keys(s:types)
+    let s:allpads[n] = repeat(' ', max(allwidths[n]))
+    let s:listedpads[n] = repeat(' ', max(listedwidths[n]))
   endfor
 
   return all
@@ -464,37 +461,38 @@
 " BuildBufferList {{{1
 function s:BuildBufferList()
   let lines = []
-  let pads = {}
-
-  for n in s:types
-    let pads[n] = repeat(' ', s:maxWidths[n])
-  endfor
 
   " Loop through every buffer.
   for buf in s:raw_buffer_listing
-    let line = buf["attributes"]." "
+    if (!g:bufExplorerShowUnlisted && buf.attributes =~ "u")
+      " skip unlisted buffers if we are not to show them
+      continue
+    endif
+
+    let line = buf.attributes." "
 
     if g:bufExplorerSplitOutPathName
       let type = (g:bufExplorerShowRelativePath) ? "relativepath" : "path"
       let path = buf[type]
-      let line .= buf["shortname"]." ".strpart(pads["shortname"].path, len(buf["shortname"]))
+      let pad  = (g:bufExplorerShowUnlisted) ? s:allpads.shortname : s:listedpads.shortname
+      let line .= buf.shortname." ".strpart(pad.path, len(buf.shortname))
     else
       let type = (g:bufExplorerShowRelativePath) ? "relativename" : "fullname"
       let path = buf[type]
       let line .= path
     endif
 
+    let pads = (g:bufExplorerShowUnlisted) ? s:allpads : s:listedpads
+
     if !empty(pads[type])
       let line .= strpart(pads[type], len(path))." "
     endif
-
-    let line .= buf["line"]
+    let line .= buf.line
 
     call add(lines, line)
   endfor
 
   call setline(s:firstBufferLine, lines)
-
   call s:SortListing()
 endfunction
 
@@ -521,6 +519,10 @@
   end
 
   if bufexists(_bufNbr)
+    if bufnr("#") == _bufNbr
+      return s:Close()
+    endif
+
     let ka = "keepalt"
 
     if (g:bufExplorerUseCurrentWindow && s:splitWindow) || (!s:splitWindow && a:split)
@@ -530,18 +532,6 @@
       let ka = ""
     endif
 
-    if bufnr("#") == _bufNbr
-      " we are about to set the % # buffers to the same thing, so open the
-      " original alt buffer first to restore it. This only happens when
-      " selecting the current (%) buffer.
-      try
-        exe "keepjumps silent b!" s:altBufNbr
-      catch
-      endtry
-
-      let ka = ""
-    endif
-
     let cmd = (a:split) ? (g:bufExplorerSplitVertical == 1) ? "vert sb" : "sb" : "b!"
     call s:SplitOpen(ka." keepjumps silent ".cmd." "._bufNbr)
   else
@@ -551,20 +541,20 @@
 endfunction
 
 " RemoveBuffer {{{1
-function s:RemoveBuffer(buf)
+function s:RemoveBuffer(bufNbr)
   " This routine assumes that the buffer to be removed is on the current line
   try
-    exe "silent bw ".a:buf
+    exe "silent bw ".a:bufNbr
 
     setlocal modifiable
     " "_dd does not move the cursor (d _ does)
     normal! "_dd
     setlocal nomodifiable
 
-    call s:MRUPop(a:buf)
+    call s:MRUPop(a:bufNbr)
 
     " Delete the buffer from the raw buffer list
-    call filter(s:raw_buffer_listing, 'v:val["attributes"] !~ " '.a:buf.' "')
+    call filter(s:raw_buffer_listing, 'v:val["attributes"] !~ " '.a:bufNbr.' "')
   catch
     call s:Error(v:exception)
   endtry
@@ -688,15 +678,22 @@
 endfunction
 
 " RebuildBufferList {{{1
-function s:RebuildBufferList()
+function s:RebuildBufferList(...)
   setlocal modifiable
 
   let curPos = getpos('.')
 
-  call s:BuildBufferList()
+  if a:0
+    " clear the list first
+    exec s:firstBufferLine.',$d "_'
+  endif
+
+  let num_buffers = s:BuildBufferList()
   call setpos('.', curPos)
 
   setlocal nomodifiable
+
+  return num_buffers
 endfunction
 
 " ToggleOpenMode {{{1
@@ -709,6 +706,12 @@
 function s:ToggleSplitType()
   let g:bufExplorerSplitVertical = !g:bufExplorerSplitVertical
   call s:UpdateHelpStatus()
+endfunction
+
+" ToggleShowUnlisted()
+function s:ToggleShowUnlisted()
+  let g:bufExplorerShowUnlisted = !g:bufExplorerShowUnlisted
+  let num_bufs = s:RebuildBufferList(g:bufExplorerShowUnlisted == 0)
 endfunction
 
 " UpdateHelpStatus {{{1
@@ -798,34 +801,27 @@
 endfunction
 
 " MRUPush {{{1
-function s:MRUPush()
-  let bufNbr = str2nr(expand('<abuf>'))
-
+function s:MRUPush(bufNbr)
   " Skip temporary buffer with buftype set.
   " Don't add the BufExplorer window to the list.
-  if !empty(getbufvar(bufNbr, "&buftype")) ||
-        \ !buflisted(bufNbr) ||
-        \ fnamemodify(bufname(bufNbr), ":t") == "[BufExplorer]"
+  if !empty(getbufvar(a:bufNbr, "&buftype")) ||
+      \ !buflisted(a:bufNbr) || empty(bufname(a:bufNbr)) ||
+      \ fnamemodify(bufname(a:bufNbr), ":t") == "[BufExplorer]"
     return
   end
 
-  call s:MRUPop(bufNbr)
-  call insert(s:MRUList, bufNbr)
+  call s:MRUPop(a:bufNbr)
+  call insert(s:MRUList, a:bufNbr)
 endfunction
 
 " MRUPop {{{1
-function s:MRUPop(...)
-  let idx = index(s:MRUList, (a:0) ? a:1 : bufnr("%"))
-
-  if (idx != -1)
-    call remove(s:MRUList, idx)
-  endif
+function s:MRUPop(bufNbr)
+  call filter(s:MRUList, 'v:val != '.a:bufNbr)
 endfunction
 
 " BuildMRU {{{1
 function s:BuildMRU()
   let s:MRUList = range(1, bufnr('$'))
-  call filter(s:MRUList, 'buflisted(v:val)')
 endfunction
 
 " MRUListShow {{{1




More information about the pkg-vim-maintainers mailing list