r1312 - in /trunk/packages/vim-scripts: debian/changelog debian/patches/disabledby-supertab.dpatch debian/vim-scripts.status html/index.html html/plugin_supertab.vim.html plugin/supertab.vim

jamessan at users.alioth.debian.org jamessan at users.alioth.debian.org
Sat Jun 6 05:49:15 UTC 2009


Author: jamessan
Date: Sat Jun  6 05:49:15 2009
New Revision: 1312

URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=1312
Log:
Update supertab to 0.49


Modified:
    trunk/packages/vim-scripts/debian/changelog
    trunk/packages/vim-scripts/debian/patches/disabledby-supertab.dpatch
    trunk/packages/vim-scripts/debian/vim-scripts.status
    trunk/packages/vim-scripts/html/index.html
    trunk/packages/vim-scripts/html/plugin_supertab.vim.html
    trunk/packages/vim-scripts/plugin/supertab.vim

Modified: trunk/packages/vim-scripts/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/changelog?rev=1312&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/changelog (original)
+++ trunk/packages/vim-scripts/debian/changelog Sat Jun  6 05:49:15 2009
@@ -6,7 +6,7 @@
 
   [ James Vega ]
   * addons upgrades:
-    - markdown-syntax
+    - markdown-syntax, supertab
   * remove patch mkd-preformatted, merged upstream.
 
  -- Stefano Zacchiroli <zack at debian.org>  Wed, 11 Feb 2009 09:24:04 +0100

Modified: trunk/packages/vim-scripts/debian/patches/disabledby-supertab.dpatch
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/patches/disabledby-supertab.dpatch?rev=1312&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/patches/disabledby-supertab.dpatch (original)
+++ trunk/packages/vim-scripts/debian/patches/disabledby-supertab.dpatch Sat Jun  6 05:49:15 2009
@@ -8,8 +8,8 @@
 diff -urNad vim-scripts~/plugin/supertab.vim vim-scripts/plugin/supertab.vim
 --- vim-scripts~/plugin/supertab.vim	2007-11-10 18:33:15.000000000 -0500
 +++ vim-scripts/plugin/supertab.vim	2007-11-13 01:09:31.000000000 -0500
-@@ -49,6 +49,11 @@
- "   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+@@ -54,6 +54,11 @@
+ "     $ vim -u NONE -U NONE -c "set nocp | runtime plugin/supertab.vim"
  " }}}
  
 +if exists("loaded_supertab")

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=1312&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/vim-scripts.status (original)
+++ trunk/packages/vim-scripts/debian/vim-scripts.status Sat Jun  6 05:49:15 2009
@@ -332,7 +332,7 @@
 email:       ervandew at yahoo.com
 license:     BSD, see /usr/share/common-licenses/BSD
 disabledby:  let loaded_supertab = 1
-version:     0.46
+version:     0.49
 
 script_name: plugin/lbdbq.vim
 addon:       lbdbq

Modified: trunk/packages/vim-scripts/html/index.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/index.html?rev=1312&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/index.html (original)
+++ trunk/packages/vim-scripts/html/index.html Sat Jun  6 05:49:15 2009
@@ -51,7 +51,7 @@
    <li><a href="syntax_mkd.vim.html">syntax/mkd.vim.html</a></li>
   </ul>
   <p>
-  Page generated on Sat, 06 Jun 2009 01:28:15 -0400
+  Page generated on Sat, 06 Jun 2009 01:46:03 -0400
 .
   </p>
  </body>

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=1312&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/plugin_supertab.vim.html (original)
+++ trunk/packages/vim-scripts/html/plugin_supertab.vim.html Sat Jun  6 05:49:15 2009
@@ -46,6 +46,19 @@
     <tr>
         <td><small>not logged in (<a href="/login.php">login</a>)</small></td>
     </tr>
+    <tr><td>
+<small>&nbsp;</small>
+<form action="http://www.google.com/cse" id="cse-search-box">
+  <div>
+    <input type="hidden" name="cx" value="partner-pub-3005259998294962:bvyni59kjr1" />
+    <input type="hidden" name="ie" value="ISO-8859-1" />
+    <input type="text" name="q" size="20" />
+    <br>
+    <input type="submit" name="sa" value="Search" />
+  </div>
+</form>
+<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
+    </td></tr>
     <tr>
         <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>
     </tr>
@@ -59,7 +72,7 @@
             <td class="sidebarheader"><a href="/index.php">Home</a></td>
         </tr>
         <tr>
-            <td class="sidebarheader"><a href="/search.php">Search</a></td>
+            <td class="sidebarheader"><a href="/search.php">Advanced search</a></td>
         </tr>
     <tr>
         <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
@@ -153,8 +166,8 @@
 <tr>
   <td class="lightbg"><b>&nbsp;script karma&nbsp;</b></td>
   <td>
-    Rating <b>571/170</b>,
-    Downloaded by 9884  </td>
+    Rating <b>775/235</b>,
+    Downloaded by 14468  </td>
 </tr>
 </table>
 <p>
@@ -204,52 +217,76 @@
     <th valign="top">release notes</th>
 </tr>
 <tr>
-        <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><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>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 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=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="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>
+</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>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.&nbsp;&nbsp;Thanks to Frank Chang for the patch.</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>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.&nbsp;&nbsp;Thanks to Andreas Schneider for reporting the issue.</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>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>
+</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"><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>
+</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>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">- 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=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="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>
+</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>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">- 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=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="rowodd" 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="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>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">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=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="roweven" valign="top" width="2000">- Added g:SuperTabMidWordCompletion variable to determine if completion should be done within a word (enabled by default).&nbsp;&nbsp;(based on request by Charles Gruenwald)
<br>- Applied patch to fix &lt;s-tab&gt; cycling through completion results. (submitted by Lukasz Krotowski)
<br></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>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">- Added g:SuperTabMidWordCompletion variable to determine if completion should be done within a word (enabled by default).&nbsp;&nbsp;(based on request by Charles Gruenwald)
<br>- Applied patch to fix &lt;s-tab&gt; 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>
+    <td class="rowodd" valign="top" width="2000">Initial upload</td>
 </tr>
 </table>
 <!-- finish off the framework -->
@@ -296,7 +333,7 @@
           </td>
 
     <td align="right" valign="top">
-      		<a href="http://sourceforge.net" rel="nofollow"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=8&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
+      		<a href="http://sourceforge.net/projects/vim" rel="nofollow"><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>

Modified: trunk/packages/vim-scripts/plugin/supertab.vim
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/plugin/supertab.vim?rev=1312&op=diff
==============================================================================
--- trunk/packages/vim-scripts/plugin/supertab.vim (original)
+++ trunk/packages/vim-scripts/plugin/supertab.vim Sat Jun  6 05:49:15 2009
@@ -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: 0.46
+" Version: 0.49
 "
 " Description: {{{
 "   Use your tab key to do all your completion in insert mode!
@@ -15,7 +15,7 @@
 " License: {{{
 "   Software License Agreement (BSD License)
 "
-"   Copyright (c) 2002 - 2007
+"   Copyright (c) 2002 - 2009
 "   All rights reserved.
 "
 "   Redistribution and use of this software in source and binary forms, with
@@ -47,6 +47,11 @@
 "   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 "   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 "   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+" }}}
+"
+" Testing Info: {{{
+"   Running vim + supertab with the absolute bar minimum settings:
+"     $ vim -u NONE -U NONE -c "set nocp | runtime plugin/supertab.vim"
 " }}}
 
 if exists('complType') " Integration with other completion functions.
@@ -199,10 +204,10 @@
 
   " set the available completion types and modes.
   let s:types =
-    \ "\<C-E>\<C-Y>\<C-L>\<C-N>\<C-K>\<C-T>\<C-I>\<C-]>\<C-F>\<C-D>\<C-V>\<C-N>\<C-P>"
+    \ "\<c-e>\<c-y>\<c-l>\<c-n>\<c-k>\<c-t>\<c-i>\<c-]>\<c-f>\<c-d>\<c-v>\<c-n>\<c-p>"
   let s:modes = '/^E/^Y/^L/^N/^K/^T/^I/^]/^F/^D/^V/^P'
   if v:version >= 700
-    let s:types = s:types . "\<C-U>\<C-O>\<C-N>\<C-P>s"
+    let s:types = s:types . "\<c-u>\<c-o>\<c-n>\<c-p>s"
     let s:modes = s:modes . '/^U/^O/s'
   endif
   let s:types = s:types . "np"
@@ -218,23 +223,29 @@
   endif
   let complType = nr2char(getchar())
   if stridx(s:types, complType) != -1
-    if stridx("\<C-E>\<C-Y>", complType) != -1 " no memory, just scroll...
-      return "\<C-x>" . complType
+    if stridx("\<c-e>\<c-y>", complType) != -1 " no memory, just scroll...
+      return "\<c-x>" . complType
     elseif stridx('np', complType) != -1
-      let complType = nr2char(char2nr(complType) - 96)  " char2nr('n')-char2nr("\<C-n")
+      let complType = nr2char(char2nr(complType) - 96)
     else
-      let complType="\<C-x>" . complType
+      let complType = "\<c-x>" . complType
     endif
 
     if g:SuperTabRetainCompletionType
       let b:complType = complType
     endif
 
+    " Hack to workaround appent bug when invoking command line completion via
+    " <c-r>=
+    if complType == "\<c-x>\<c-v>"
+      return s:CommandLineCompletion()
+    endif
+
     return complType
-  else
-    echohl "Unknown mode"
-    return complType
-  endif
+  endif
+
+  echohl "Unknown mode"
+  return complType
 endfunction " }}}
 
 " SuperTabSetCompletionType(type) {{{
@@ -243,7 +254,7 @@
 " default or switch to another mode without having to kick off a completion
 " of that type or use SuperTabHelp.
 " Example mapping to restore SuperTab default:
-"   nmap <F6> :call SetSuperTabCompletionType("<C-P>")<cr>
+"   nmap <F6> :call SetSuperTabCompletionType("<c-p>")<cr>
 function! SuperTabSetCompletionType (type)
   exec "let b:complType = \"" . escape(a:type, '<') . "\""
 endfunction " }}}
@@ -255,15 +266,20 @@
     autocmd!
     autocmd BufEnter * call <SID>InitBuffer()
   augroup END
-  " ensure InitBuffer gets called for the first buffer.
-  call s:InitBuffer()
+
+  " ensure InitBuffer gets called for the first buffer, after the ftplugins
+  " have been called.
+  augroup supertab_init_first
+    autocmd!
+    autocmd FileType <buffer> call <SID>InitBuffer()
+  augroup END
 
   " Setup mechanism to restore orignial completion type upon leaving insert
   " mode if g:SuperTabRetainCompletionType == 2
   if g:SuperTabRetainCompletionType == 2
     " pre vim 7, must map <esc>
     if v:version < 700
-      im <silent> <ESC> <ESC>:call s:SetDefaultCompletionType()<cr>
+      imap <silent> <ESC> <ESC>:call s:SetDefaultCompletionType()<cr>
 
     " since vim 7, we can use InsertLeave autocmd.
     else
@@ -281,6 +297,9 @@
   if exists("b:complType")
     return
   endif
+
+  " init hack for <c-x><c-v> workaround.
+  let b:complCommandLine = 0
 
   if !exists("b:SuperTabDefaultCompletionType")
     " loop through discovery list to find the default
@@ -389,7 +408,7 @@
 
 " s:SetDefaultCompletionType() {{{
 function! s:SetDefaultCompletionType ()
-  if exists('b:SuperTabDefaultCompletionType')
+  if exists('b:SuperTabDefaultCompletionType') && !b:complCommandLine
     call SuperTabSetCompletionType(b:SuperTabDefaultCompletionType)
   endif
 endfunction " }}}
@@ -400,6 +419,10 @@
 " retain the normal usage of <tab> based on the cursor position.
 function! s:SuperTab (command)
   if s:WillComplete()
+    " rare case where no autocmds have fired for this buffer to initialize the
+    " supertab vars.
+    call s:InitBuffer()
+
     let key = ''
     " highlight first result if longest enabled
     if g:SuperTabLongestHighlight && !pumvisible() && &completeopt =~ 'longest'
@@ -436,6 +459,11 @@
       return complType . key
     endif
 
+    " Hack to workaround appent bug when invoking command line completion via
+    " <c-r>=
+    if b:complType == "\<c-x>\<c-v>"
+      return s:CommandLineCompletion()
+    endif
     return b:complType . key
   endif
 
@@ -501,23 +529,36 @@
   return 1
 endfunction " }}}
 
+" s:CommandLineCompletion() {{{
+" Hack needed to account for apparent bug in vim command line mode completion
+" when invoked via <c-r>=
+function! s:CommandLineCompletion()
+  " This hack will trigger InsertLeave which will then invoke
+  " s:SetDefaultCompletionType.  To prevent default completion from being
+  " restored prematurely, set an internal flag for s:SetDefaultCompletionType
+  " to check for.
+  let b:complCommandLine = 1
+  return "\<c-\>\<c-o>:call feedkeys('\<c-x>\<c-v>\<c-v>', 'n') | " .
+    \ "let b:complCommandLine = 0\<cr>"
+endfunction " }}}
+
 " Key Mappings {{{
   " map a regular tab to ctrl-tab (note: doesn't work in console vim)
   exec 'inoremap ' . g:SuperTabMappingTabLiteral . ' <tab>'
 
-  im <c-x> <c-r>=CtrlXPP()<cr>
+  imap <c-x> <c-r>=CtrlXPP()<cr>
 
   " From the doc |insert.txt| improved
-  exec 'im ' . g:SuperTabMappingForward . ' <c-n>'
-  exec 'im ' . g:SuperTabMappingBackward . ' <c-p>'
+  exec 'imap ' . g:SuperTabMappingForward . ' <c-n>'
+  exec 'imap ' . g:SuperTabMappingBackward . ' <c-p>'
 
   " After hitting <Tab>, hitting it once more will go to next match
   " (because in XIM mode <c-n> and <c-p> mappings are ignored)
   " and wont start a brand new completion
   " The side effect, that in the beginning of line <c-n> and <c-p> inserts a
   " <Tab>, but I hope it may not be a problem...
-  ino <c-n> <c-r>=<SID>SuperTab('n')<cr>
-  ino <c-p> <c-r>=<SID>SuperTab('p')<cr>
+  inoremap <c-n> <c-r>=<SID>SuperTab('n')<cr>
+  inoremap <c-p> <c-r>=<SID>SuperTab('p')<cr>
 " }}}
 
 " Command Mappings {{{
@@ -526,6 +567,6 @@
   endif
 " }}}
 
-call <SID>Init()
+call s:Init()
 
 " vim:ft=vim:fdm=marker




More information about the pkg-vim-maintainers mailing list