sponsor Vim development Vim logo Vim Book Ad

SuperTab continued. : Do all your insert-mode completion with Tab.

 script karma  Rating 340/102, Downloaded by 4189

created by
Eric Van Dewoestine
 
script type
utility
 
description
This is a continuation of vimscript #182 by Gergely Kontra, who has
asked me to take over support and maintenance.  So if you have any
questions or suggestions, please direct them to me.  Please read the
description below as some enhancements have been made as well.

Description:
  This script allows you to use the tab key to do all your insert
  completion (:help ins-completion).

  Ex. To complete the word bar or baz
    foo bar baz
    b<Tab>


  This version of SuperTab supports several configuration options:
  NOTE: Please see the "Global Variables" fold in the script for more details.
  - The default completion type (defaults to keyword completion)
  - The duration that a non-default completion type will be retained before
    switching back to the default (defaults to retaining the current
    completion type until you manually kick off a different one).
  - Disabling of mid-word (word character to the left and right) completion
    (defaults to mid-word completion enabled).
  - Ability to change the default mapping to kick off forward or backward
    completion (defaults to <tab> and <s-tab>).
  - A discovery list to determine the default completion type to use for any
    given buffer (defaults to no discovery).
  - Option to highlight the first entry in the results if your completeopt has
    'menu' and 'longest'.

  This version also adds a command (:SuperTabHelp) which opens up a buffer
  listing all various completion types, where you can simply hit <enter> on
  the completion type you wish to switch to.
 
install details
Place the file in your plugins directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
supertab.vim 0.44 2007-11-08 6.0 Eric Van Dewoestine - 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)
- added config variables to changed the default mappings for forward backwards completion. (based on request by Li Chaoqun)
- added config variable to preselect the first entry when completeopt has 'menu' and 'longest'. (based on suggestion and patch by Mike Lundy)
supertab.vim 0.43 2007-07-12 6.0 Eric Van Dewoestine With the permission of the original author, this script is now released under the BSD license.
supertab.vim 0.42 2007-06-11 6.0 Eric Van Dewoestine - Added g:SuperTabMidWordCompletion variable to determine if completion should be done within a word (enabled by default).  (based on request by Charles Gruenwald)
- Applied patch to fix <s-tab> cycling through completion results. (submitted by Lukasz Krotowski)
supertab.vim 0.41 2006-08-30 6.0 Eric Van Dewoestine Initial upload

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Sponsored by Web Concept Group Inc. SourceForge.net Logo