SuperTab continued. : Do all your insert-mode completion with Tab.
script karma |
Rating 571/170,
Downloaded by 9884 |
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. |
|
script versions (upload new version)
Click on the package to download.
supertab.vim |
0.46 |
2008-11-15 |
7.0 |
Eric Van Dewoestine |
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).
|
supertab.vim |
0.45 |
2007-12-18 |
6.0 |
Eric Van Dewoestine |
- fixed possible completion error on first buffer as supertab may not have been properly initialized (thanks to bill emmons for discovering the error). |
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 |
|