[SCM] vim-scripts packaging branch, master, updated. v20091011-30-gc476b42

James Vega jamessan at debian.org
Sun Aug 14 03:27:09 UTC 2011


The following commit has been merged in the master branch:
commit 693f858459bbc07c78d932358f47f00f5046ad53
Author: James Vega <jamessan at debian.org>
Date:   Sat Aug 13 22:48:39 2011 -0400

    Update supertab to 1.6
    
    Signed-off-by: James Vega <jamessan at debian.org>

diff --git a/debian/changelog b/debian/changelog
index dacd644..f580a91 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,7 +3,7 @@ vim-scripts (20091012) UNRELEASED; urgency=low
   * Rename "colors sampler pack" to "colors-sampler-pack" so it's easier to
     manage with vim-addon-manager.  (Closes: #555621)
   * Updated addons:
-    - supertab: Updated to 1.5
+    - supertab: Updated to 1.6
     - DoxygenToolkit: Update to 0.2.13
     - Color Sampler Pack: Update to 8.03
     - vcscommand: Update to 1.99.35
diff --git a/debian/vim-scripts.status b/debian/vim-scripts.status
index 36b42ee..8105891 100644
--- a/debian/vim-scripts.status
+++ b/debian/vim-scripts.status
@@ -322,7 +322,7 @@ email:       ervandew at gmail.com
 license:     BSD, see /usr/share/common-licenses/BSD
 extras:      doc/supertab.txt
 disabledby:  let loaded_supertab = 1
-version:     1.5
+version:     1.6
 
 script_name: plugin/lbdbq.vim
 addon:       lbdbq
diff --git a/html/index.html b/html/index.html
index 01ae7bb..4b3ded0 100644
--- a/html/index.html
+++ b/html/index.html
@@ -49,7 +49,7 @@
    <li><a href="syntax_CVSAnnotate.vim.html">syntax/CVSAnnotate.vim.html</a></li>
   </ul>
   <p>
-  Page generated on Sat, 13 Aug 2011 22:43:04 -0400
+  Page generated on Sat, 13 Aug 2011 22:47:56 -0400
 .
   </p>
  </body>
diff --git a/html/plugin_supertab.vim.html b/html/plugin_supertab.vim.html
index 51081a7..eb77ee5 100644
--- a/html/plugin_supertab.vim.html
+++ b/html/plugin_supertab.vim.html
@@ -135,6 +135,8 @@
             <td class="sidebarheader"><a href="/huh.php">Site Help</a></td>
         </tr>
 </table>
+<br>
+<g:plusone></g:plusone>
 
             <table width="172" cellpadding="0" cellspacing="0" border="0">
               <tr><td><img src="/images/spacer.gif" alt="" border="0" width="1" height="8"></td></tr>
@@ -166,8 +168,10 @@
 <tr>
   <td class="lightbg"><b> script karma </b></td>
   <td>
-    Rating <b>1586/486</b>,
-    Downloaded by 37810  </td>
+    Rating <b>1623/499</b>,
+    Downloaded by 39586     
+    <g:plusone></g:plusone>
+  </td>
   <td class="lightbg">
   <b> Comments, bugs, improvements </b>
   </td>
@@ -223,156 +227,164 @@ Click on the package to download.
     <th valign="top">release notes</th>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=15029">supertab.vba</a></td>
-    <td class="rowodd" valign="top" nowrap><b>1.5</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2011-02-16</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=16104">supertab.vba</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.6</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2011-07-20</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">- updated to support user mapped <c-n>/<c-p>
<br>- fix logic to decide whether to scroll up or down based on current completion context
<br>- fix <c-x><c-*> w/ longest enhancement enabled</td>
+    <td class="rowodd" valign="top" width="2000">- couple longest enhancement fixes
<br>- added ability to disable supertab via a buffer local variable
<br>- few other miscellaneous fixes.</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=14882">supertab.vba</a></td>
-    <td class="roweven" valign="top" nowrap><b>1.4</b></td>
-    <td class="roweven" valign="top" nowrap><i>2011-01-27</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=15029">supertab.vba</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.5</b></td>
+    <td class="roweven" valign="top" nowrap><i>2011-02-16</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">Fix error that occurs attempting to complete after optional alternate completion mapping or :SuperTabHelp have set the completion type.</td>
+    <td class="roweven" valign="top" width="2000">- updated to support user mapped <c-n>/<c-p>
<br>- fix logic to decide whether to scroll up or down based on current completion context
<br>- fix <c-x><c-*> w/ longest enhancement enabled</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=14782">supertab.vba</a></td>
-    <td class="rowodd" valign="top" nowrap><b>1.3</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2011-01-18</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=14882">supertab.vba</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.4</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2011-01-27</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">- fix error attempting tab completion if buffer was loaded with no autocmds fired
<br>- fix tabbing through completion results with longest enabled when the longest text expanded is the empty string.</td>
+    <td class="rowodd" valign="top" width="2000">Fix error that occurs attempting to complete after optional alternate completion mapping or :SuperTabHelp have set the completion type.</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=14717">supertab.vba</a></td>
-    <td class="roweven" valign="top" nowrap><b>1.2</b></td>
-    <td class="roweven" valign="top" nowrap><i>2011-01-09</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=14782">supertab.vba</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.3</b></td>
+    <td class="roweven" valign="top" nowrap><i>2011-01-18</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">- fix to not break abbreviation expansion on <cr>
<br>- when using longest enhancement, save/restore any previous mappings for <bs>/<c-h>
<br>- fix <cr> mapping to cooperate better with <cr> mappings of other plugins (ex. endwise)
<br>- created variables to set user defined list of before or after patterns for which completion should not be attempted (:h supertab-preventcomplete)</td>
+    <td class="roweven" valign="top" width="2000">- fix error attempting tab completion if buffer was loaded with no autocmds fired
<br>- fix tabbing through completion results with longest enabled when the longest text expanded is the empty string.</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=13928">supertab.vba</a></td>
-    <td class="rowodd" valign="top" nowrap><b>1.1</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2010-09-27</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=14717">supertab.vba</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.2</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2011-01-09</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">- added optional default <cr> mapping to end completion mode (enabled by default)
<br>- added support for an enhanced longest match completion (disabled by default)
<br>- other minor enhancements + bug fixes</td>
+    <td class="rowodd" valign="top" width="2000">- fix to not break abbreviation expansion on <cr>
<br>- when using longest enhancement, save/restore any previous mappings for <bs>/<c-h>
<br>- fix <cr> mapping to cooperate better with <cr> mappings of other plugins (ex. endwise)
<br>- created variables to set user defined list of before or after patterns for which completion should not be attempted (:h supertab-preventcomplete)</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=11853">supertab.vba</a></td>
-    <td class="roweven" valign="top" nowrap><b>1.0</b></td>
-    <td class="roweven" valign="top" nowrap><i>2009-12-03</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=13928">supertab.vba</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.1</b></td>
+    <td class="roweven" valign="top" nowrap><i>2010-09-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=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">- fixed reverse cycling through result when using <c-n> completion
<br>- now distributed as a vimball with a help file (:h supertab).  Thanks to Christophe-Marie Duquesne.</td>
+    <td class="roweven" valign="top" width="2000">- added optional default <cr> mapping to end completion mode (enabled by default)
<br>- added support for an enhanced longest match completion (disabled by default)
<br>- other minor enhancements + bug fixes</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=11533">supertab.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>0.61</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2009-10-16</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=11853">supertab.vba</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.0</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2009-12-03</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Fixed a possible error that may occur in some rare conditions.</td>
+    <td class="rowodd" valign="top" width="2000">- fixed reverse cycling through result when using <c-n> completion
<br>- now distributed as a vimball with a help file (:h supertab).  Thanks to Christophe-Marie Duquesne.</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=11386">supertab.vim</a></td>
-    <td class="roweven" valign="top" nowrap><b>0.60</b></td>
-    <td class="roweven" valign="top" nowrap><i>2009-09-16</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=11533">supertab.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>0.61</b></td>
+    <td class="roweven" valign="top" nowrap><i>2009-10-16</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">- Refactored the contextual completion and default discovery support.
<br>  - Context completion now supports plugable functions to determine which
<br>    completion type to use.
<br>  - Default discovery is now a part of context completion.
<br>- NOTE: Several non-backwards compatible configuration changes where made.
<br>  - g:SuperTabRetainCompletionType is now g:SuperTabRetainCompletionDuration
<br>    and accepts one of 'none', 'insert', or 'session'.
<br>  - new setting g:SuperTabCompletionContexts defines which context completion
<br>    functions are consulted.
<br>  - g:SuperTabDefaultCompletionTypeDiscovery is now
<br>    g:SuperTabContextDiscoverDiscovery and requires that
<br>    g:SuperTabContextDefaultCompletionType is set to 'context' and that
<br>    's:ContextDiscover' is in your g:SuperTabCompletionContexts list.
<br>Please see the updated "Global Variables" fold in supertab.vim for additional
<br>details and examples.</td>
+    <td class="roweven" valign="top" width="2000">Fixed a possible error that may occur in some rare conditions.</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=10998">supertab.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>0.51</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2009-07-11</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=11386">supertab.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>0.60</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2009-09-16</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Replaced internal function s:IsWordChar with vim's keyword character class (Thanks to Ingo Karkat for the patch).</td>
+    <td class="rowodd" valign="top" width="2000">- Refactored the contextual completion and default discovery support.
<br>  - Context completion now supports plugable functions to determine which
<br>    completion type to use.
<br>  - Default discovery is now a part of context completion.
<br>- NOTE: Several non-backwards compatible configuration changes where made.
<br>  - g:SuperTabRetainCompletionType is now g:SuperTabRetainCompletionDuration
<br>    and accepts one of 'none', 'insert', or 'session'.
<br>  - new setting g:SuperTabCompletionContexts defines which context completion
<br>    functions are consulted.
<br>  - g:SuperTabDefaultCompletionTypeDiscovery is now
<br>    g:SuperTabContextDiscoverDiscovery and requires that
<br>    g:SuperTabContextDefaultCompletionType is set to 'context' and that
<br>    's:ContextDiscover' is in your g:SuperTabCompletionContexts list.
<br>Please see the updated "Global Variables" fold in supertab.vim for additional
<br>details and examples.</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=10900">supertab.vim</a></td>
-    <td class="roweven" valign="top" nowrap><b>0.50</b></td>
-    <td class="roweven" valign="top" nowrap><i>2009-06-26</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=10998">supertab.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>0.51</b></td>
+    <td class="roweven" valign="top" nowrap><i>2009-07-11</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">Added check for vim 7 or greater, otherwise disable supertab support (suggested by Vincent Lee).  Also, removed any remaining pre vim 7 logic that is no longer applicable.</td>
+    <td class="roweven" valign="top" width="2000">Replaced internal function s:IsWordChar with vim's keyword character class (Thanks to Ingo Karkat for the patch).</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=9918">supertab.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>0.49</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2009-02-05</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=10900">supertab.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>0.50</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2009-06-26</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">fixed case where new buffer may not be initialized by super tab (thanks to Tammer Saleh for reporting the issue).</td>
+    <td class="rowodd" valign="top" width="2000">Added check for vim 7 or greater, otherwise disable supertab support (suggested by Vincent Lee).  Also, removed any remaining pre vim 7 logic that is no longer applicable.</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=9837">supertab.vim</a></td>
-    <td class="roweven" valign="top" nowrap><b>0.48</b></td>
-    <td class="roweven" valign="top" nowrap><i>2009-01-18</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=9918">supertab.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>0.49</b></td>
+    <td class="roweven" valign="top" nowrap><i>2009-02-05</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">Fixed command line completion (ctrl-x ctrl-v) when invoked from supertab.  Thanks to Frank Chang for the patch.</td>
+    <td class="roweven" valign="top" width="2000">fixed case where new buffer may not be initialized by super tab (thanks to Tammer Saleh for reporting the issue).</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=9795">supertab.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>0.47</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2009-01-11</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=9837">supertab.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>0.48</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2009-01-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=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">fixed issue with default completion discovery option if desired type is dependent on file type plugins.  Thanks to Andreas Schneider for reporting the issue.</td>
+    <td class="rowodd" valign="top" width="2000">Fixed command line completion (ctrl-x ctrl-v) when invoked from supertab.  Thanks to Frank Chang for the patch.</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=9510">supertab.vim</a></td>
-    <td class="roweven" valign="top" nowrap><b>0.46</b></td>
-    <td class="roweven" valign="top" nowrap><i>2008-11-15</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=9795">supertab.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>0.47</b></td>
+    <td class="roweven" valign="top" nowrap><i>2009-01-11</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">Added support for default completion type 'context', which will result in super tab attempting to determine which completion type to use (file, user/omni, keyword) based on the text preceding the cursor (Based on suggestion by François Beaubert).
<br></td>
+    <td class="roweven" valign="top" width="2000">fixed issue with default completion discovery option if desired type is dependent on file type plugins.  Thanks to Andreas Schneider for reporting the issue.</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=8070">supertab.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>0.45</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2007-12-18</i></td>
-    <td class="rowodd" valign="top" nowrap>6.0</td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=9510">supertab.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>0.46</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2008-11-15</i></td>
+    <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">- fixed possible completion error on first buffer as supertab may not have been properly initialized (thanks to bill emmons for discovering the error).</td>
+    <td class="rowodd" valign="top" width="2000">Added support for default completion type 'context', which will result in super tab attempting to determine which completion type to use (file, user/omni, keyword) based on the text preceding the cursor (Based on suggestion by François Beaubert).
<br></td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=7904">supertab.vim</a></td>
-    <td class="roweven" valign="top" nowrap><b>0.44</b></td>
-    <td class="roweven" valign="top" nowrap><i>2007-11-08</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=8070">supertab.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>0.45</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-12-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=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">- added config variable to specify discovery list used to determine the default completion type to use for the current buffer. (based on request by Den Yao)
<br>- added config variables to changed the default mappings for forward backwards completion. (based on request by Li Chaoqun)
<br>- added config variable to preselect the first entry when completeopt has 'menu' and 'longest'. (based on suggestion and patch by Mike Lundy)</td>
+    <td class="roweven" valign="top" width="2000">- fixed possible completion error on first buffer as supertab may not have been properly initialized (thanks to bill emmons for discovering the error).</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7344">supertab.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>0.43</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2007-07-12</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7904">supertab.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>0.44</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-11-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=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">With the permission of the original author, this script is now released under the BSD license.</td>
+    <td class="rowodd" valign="top" width="2000">- added config variable to specify discovery list used to determine the default completion type to use for the current buffer. (based on request by Den Yao)
<br>- added config variables to changed the default mappings for forward backwards completion. (based on request by Li Chaoqun)
<br>- added config variable to preselect the first entry when completeopt has 'menu' and 'longest'. (based on suggestion and patch by Mike Lundy)</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=7228">supertab.vim</a></td>
-    <td class="roweven" valign="top" nowrap><b>0.42</b></td>
-    <td class="roweven" valign="top" nowrap><i>2007-06-11</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=7344">supertab.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>0.43</b></td>
+    <td class="roweven" valign="top" nowrap><i>2007-07-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=6016">Eric Van Dewoestine</a></i></td>
-    <td class="roweven" valign="top" width="2000">- Added g:SuperTabMidWordCompletion variable to determine if completion should be done within a word (enabled by default).  (based on request by Charles Gruenwald)
<br>- Applied patch to fix <s-tab> cycling through completion results. (submitted by Lukasz Krotowski)
<br></td>
+    <td class="roweven" valign="top" width="2000">With the permission of the original author, this script is now released under the BSD license.</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=6114">supertab.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>0.41</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2006-08-30</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=7228">supertab.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>0.42</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2007-06-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=6016">Eric Van Dewoestine</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Initial upload</td>
+    <td class="rowodd" valign="top" width="2000">- Added g:SuperTabMidWordCompletion variable to determine if completion should be done within a word (enabled by default).  (based on request by Charles Gruenwald)
<br>- Applied patch to fix <s-tab> cycling through completion results. (submitted by Lukasz Krotowski)
<br></td>
+</tr>
+<tr>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=6114">supertab.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>0.41</b></td>
+    <td class="roweven" valign="top" nowrap><i>2006-08-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=6016">Eric Van Dewoestine</a></i></td>
+    <td class="roweven" valign="top" width="2000">Initial upload</td>
 </tr>
 </table>
 <!-- finish off the framework -->
@@ -431,6 +443,15 @@ Click on the package to download.
   </tr>
 </table>
 
+<!-- for Google +1 button -->
+<script type="text/javascript">
+  (function() {
+    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
+    po.src = 'https://apis.google.com/js/plusone.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
+  })();
+</script>
+
 </body>
 </html>
 
diff --git a/plugin/supertab.vim b/plugin/supertab.vim
index 8b7d7bb..67f8c5c 100644
--- a/plugin/supertab.vim
+++ b/plugin/supertab.vim
@@ -2,7 +2,7 @@
 "   Original: Gergely Kontra <kgergely at mcl.hu>
 "   Current:  Eric Van Dewoestine <ervandew at gmail.com> (as of version 0.4)
 "   Please direct all correspondence to Eric.
-" Version: 1.5
+" Version: 1.6
 " GetLatestVimScripts: 1643 1 :AutoInstall: supertab.vim
 "
 " Description: {{{
@@ -212,6 +212,16 @@ function! SuperTabAlternateCompletion(type)
   return ''
 endfunction " }}}
 
+" SuperTabLongestHighlight(dir) {{{
+" When longest highlight is enabled, this function is used to do the actual
+" selection of the completion popup entry.
+function! SuperTabLongestHighlight(dir)
+  if !pumvisible()
+    return ''
+  endif
+  return a:dir == -1 ? "\<up>" : "\<down>"
+endfunction " }}}
+
 " s:Init {{{
 " Global initilization when supertab is loaded.
 function! s:Init()
@@ -284,6 +294,14 @@ function! s:ManualCompletionEnter()
       call s:EnableLongestEnhancement()
     endif
 
+    if g:SuperTabLongestHighlight &&
+     \ &completeopt =~ 'longest' &&
+     \ &completeopt =~ 'menu' &&
+     \ !pumvisible()
+      let dir = (complType == "\<c-x>\<c-p>") ? -1 : 1
+      call feedkeys("\<c-r>=SuperTabLongestHighlight(" . dir . ")\<cr>", 'n')
+    endif
+
     return complType
   endif
 
@@ -317,6 +335,10 @@ endfunction " }}}
 " previous entry in a completion list, and determines whether or not to simply
 " retain the normal usage of <tab> based on the cursor position.
 function! s:SuperTab(command)
+  if exists('b:SuperTabDisabled') && b:SuperTabDisabled
+    return "\<tab>"
+  endif
+
   call s:InitBuffer()
 
   if s:WillComplete()
@@ -325,12 +347,6 @@ function! s:SuperTab(command)
       call s:EnableLongestEnhancement()
     endif
 
-    " highlight first result if longest enabled
-    if g:SuperTabLongestHighlight && !pumvisible() && &completeopt =~ 'longest'
-      let key = (b:complType == "\<c-p>") ? b:complType : "\<c-n>"
-      call feedkeys(key)
-    endif
-
     if !pumvisible()
       let b:complTypeManual = ''
     endif
@@ -351,23 +367,14 @@ function! s:SuperTab(command)
       \    b:complTypeContext == "\<c-n>"))
       return "\<c-p>"
 
-    " this used to handle call from captured keys with the longest enhancement
-    " enabled, but also must work when the enhancement is disabled.
+    " already in completion mode and not resetting for longest enhancement, so
+    " just scroll to next/previous
     elseif pumvisible() && !b:complReset
-      if b:complType == 'context'
-        exec "let contextDefault = \"" .
-          \ escape(g:SuperTabContextDefaultCompletionType, '<') . "\""
-        " if we are in another completion mode, just scroll to the next
-        " completion
-        if b:complTypeContext != contextDefault
-          return a:command == 'n' ? "\<c-n>" : "\<c-p>"
-        endif
-        return contextDefault
-      endif
+      let type = b:complType == 'context' ? b:complTypeContext : b:complType
       if a:command == 'n'
-        return b:complType == "\<c-p>" ? "\<c-p>" : "\<c-n>"
+        return type == "\<c-p>" ? "\<c-p>" : "\<c-n>"
       endif
-      return b:complType == "\<c-p>" ? "\<c-n>" : "\<c-p>"
+      return type == "\<c-p>" ? "\<c-n>" : "\<c-p>"
     endif
 
     " handle 'context' completion.
@@ -386,6 +393,15 @@ function! s:SuperTab(command)
       let complType = b:complType
     endif
 
+    " highlight first result if longest enabled
+    if g:SuperTabLongestHighlight &&
+     \ &completeopt =~ 'longest' &&
+     \ &completeopt =~ 'menu' &&
+     \ (!pumvisible() || b:complReset)
+      let dir = (complType == "\<c-p>") ? -1 : 1
+      call feedkeys("\<c-r>=SuperTabLongestHighlight(" . dir . ")\<cr>", 'n')
+    endif
+
     if b:complReset
       let b:complReset = 0
       " not an accurate condition for everyone, but better than sending <c-e>
@@ -475,8 +491,8 @@ function! s:EnableLongestEnhancement()
     autocmd!
     autocmd InsertLeave,CursorMovedI <buffer>
       \ call s:ReleaseKeyPresses() | autocmd! supertab_reset
-    call s:CaptureKeyPresses()
   augroup END
+  call s:CaptureKeyPresses()
 endfunction " }}}
 
 " s:CompletionReset(char) {{{
@@ -501,7 +517,6 @@ function! s:CaptureKeyPresses()
     endfor
     imap <buffer> <bs> <c-r>=<SID>CompletionReset("\<lt>bs>")<cr>
     imap <buffer> <c-h> <c-r>=<SID>CompletionReset("\<lt>c-h>")<cr>
-    exec 'imap <buffer> ' . g:SuperTabMappingForward . ' <c-r>=<SID>SuperTab("n")<cr>'
   endif
 endfunction " }}}
 
@@ -515,7 +530,6 @@ function! s:ReleaseKeyPresses()
 
     iunmap <buffer> <bs>
     iunmap <buffer> <c-h>
-    exec 'iunmap <buffer> ' . g:SuperTabMappingForward
 
     " restore any previous mappings
     for [key, rhs] in items(b:captured)
@@ -531,7 +545,7 @@ function! s:ReleaseKeyPresses()
     endfor
     unlet b:captured
 
-    if mode() == 'i'
+    if mode() == 'i' && &completeopt =~ 'menu'
       " force full exit from completion mode (don't exit insert mode since
       " that will break repeating with '.')
       call feedkeys("\<space>\<bs>", 'n')
@@ -688,7 +702,9 @@ endfunction " }}}
         return "\<c-y>"
       endif
 
-      if exists('b:supertab_pumwasvisible')
+      " only needed when chained with other mappings and one of them will
+      " issue a <cr>.
+      if exists('b:supertab_pumwasvisible') && !a:cr
         unlet b:supertab_pumwasvisible
         return ''
       endif

-- 
vim-scripts packaging



More information about the pkg-vim-maintainers mailing list