Vim Tips Wiki
No edit summary
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ScriptComments|1643|SuperTab}}
+
{{ScriptComments|SuperTab}}
   
 
This script replaces {{script|id=182}}.
 
This script replaces {{script|id=182}}.
   
It allows you to do all your insert-mode completion with the {{tt|Tab}} key.
+
It allows you to do all your insert-mode completion with the <code>Tab</code> key.
   
 
==Comments==
 
==Comments==
This script could have a shortcut to cycle between completion modes
+
This script could have a shortcut to cycle between completion modes, for example:
  +
<pre>
 
 
tab would start completion mode
Ex:
 
tab would would start completion mode
 
 
tab again would change to dictionary mode
 
tab again would change to dictionary mode
 
tab again would change to tags
 
tab again would change to tags
and etc.
+
etc.
  +
</pre>
  +
--December 13, 2010
  +
----
 
<code>set langmap=e;h</code> causes the plugin to fail for some reason. --October 26, 2011
  +
----
  +
Nice job! Thanks for creating and maintaining this! -- Mike Ellis February 4, 2012
  +
----
  +
Current version 1.6 seems to have unpleasant side effect/bug. For those of us still using Ctrl-N and Ctrl-P to autocomplete, behavior is reversed compared to normal; for example hitting Ctrl-N selects nearest completion that come BEFORE the cursor position, not the one that is AFTER it. This is very confusing and unfortunate. -- Olek Poplavsky May 15 2012
  +
----
  +
Great plugin, thanks for all the hard work!
  +
  +
I don't know if this is a feature or bug, but without SuperTab, Ctrl-N and P would autocomplete nearest keyword with 2 characters or more, making writing stuff like counter = counter + 1 fast (you just type "counter = <C-P> + 1", but with SuperTab, both just insert tabs instead.
  +
  +
I understand that <Tab> after \s (i.e. with withspace before cursor) might be useful to interpret as "I want to add a tab", but it would be nice if <C-N> and <C-P> would not do that, as I feel I'm losing a bit of Vim standard functionality when I enable SuperTab.
   
  +
-- Joonas Pihlajamaa Jul 05 2013
set langmap=e;h causes the plugin to fail for some reason.
 

Latest revision as of 11:23, 5 July 2013

Use this page to discuss script 1643 SuperTab

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

This script replaces script#182.

It allows you to do all your insert-mode completion with the Tab key.

Comments[]

This script could have a shortcut to cycle between completion modes, for example:

tab would start completion mode
tab again would change to dictionary mode
tab again would change to tags
etc.

--December 13, 2010


set langmap=e;h causes the plugin to fail for some reason. --October 26, 2011


Nice job! Thanks for creating and maintaining this! -- Mike Ellis February 4, 2012


Current version 1.6 seems to have unpleasant side effect/bug. For those of us still using Ctrl-N and Ctrl-P to autocomplete, behavior is reversed compared to normal; for example hitting Ctrl-N selects nearest completion that come BEFORE the cursor position, not the one that is AFTER it. This is very confusing and unfortunate. -- Olek Poplavsky May 15 2012


Great plugin, thanks for all the hard work!

I don't know if this is a feature or bug, but without SuperTab, Ctrl-N and P would autocomplete nearest keyword with 2 characters or more, making writing stuff like counter = counter + 1 fast (you just type "counter = <C-P> + 1", but with SuperTab, both just insert tabs instead.

I understand that <Tab> after \s (i.e. with withspace before cursor) might be useful to interpret as "I want to add a tab", but it would be nice if <C-N> and <C-P> would not do that, as I feel I'm losing a bit of Vim standard functionality when I enable SuperTab.

-- Joonas Pihlajamaa Jul 05 2013