sponsor Vim development Vim logo Vim Book Ad

AmbiCompletion : Ambiguous completion

 script karma  Rating 5/2, Downloaded by 4557  Comments, bugs, improvements  Vim wiki

created by
Shuhei Kubota
 
script type
utility
 
description
This script provides an ambiguous completion functionality.

A long function name, tired to type, a vague memory of spelling, ...
Ambiguous completion supports you with similar words in your buffer.

Your type does not need to match the beginning of answer word.
"egining" -> "beginning"

For those who are forgetful.

This is a fork of the first version of Word Fuzzy Completion.
(http://www.vim.org/scripts/script.php?script_id=3857)
adding architectural changes(mainly no need +python), middle-word-match, global candidates, speed tuning.

Usage:

  1. Set completefunc to g:AmbiCompletion.

      :set completefunc=g:AmbiCompletion
      :set completefunc=g:AmbiCompletion9 "if you download ambicompletion9.vim

      "optional
      :inoremap <C-U>  <C-X><C-U>

Variables:

  (A right hand side value is a default value.)

  g:AmbiCompletion_cacheCheckpoint = 50

      cache-updating interval.
      The cache is updated when changedtick progresses by this value.

Commands:
  
  AmbiCompletionRefreshCache

      clear the cache.
 
install details
Put this plugin in your plugin directory(e.g. $VIMRUNTIME/plugin).
Then source it or restart VIM.
 

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
ambicompletion9.vim 2.0a10 2021-01-25 8.2 Shuhei Kubota fix lambda
ambicompletion9.vim 2.0a9 2020-10-20 8.2 Shuhei Kubota fix variable declaration, add g:AmbiCompletion_useMatchFuzzy
ambicompletion9.vim 2.0a8 2020-08-16 8.0 Shuhei Kubota fix function type error
ambicompletion9.vim 2.0a7 2020-08-11 8.0 Shuhei Kubota fix function type error
ambicompletion9.vim 2.0a6 2020-08-05 8.0 Shuhei Kubota fix scoring innacuracy
ambicompletion9.vim 2.0a5 2020-08-02 8.0 Shuhei Kubota faster
ambicompletion9.vim 2.0a4 2020-07-28 8.0 Shuhei Kubota fix sudden death
ambicompletion9.vim 2.0a3 2020-07-22 8.0 Shuhei Kubota REQUIRES 8.2.1261^. A little quicker.
ambicompletion9.vim 2.0a2 2020-07-01 8.0 Shuhei Kubota fix sudden death
ambicompletion9.vim 2.0a 2020-06-20 8.0 Shuhei Kubota It now performs faster. (REQUIRES vim9script)
ambicompletion.vim 1.2 2019-01-24 8.0 Shuhei Kubota auto re-complete if few candidates
ambicompletion.vim 1.1 2018-12-21 7.0 Shuhei Kubota better filtering & speed tuning
ambicompletion.vim 1.0 2018-12-20 7.0 Shuhei Kubota global candidates by default, speed tuning
ambicompletion.vim 0.7 2016-07-31 7.0 Shuhei Kubota Added partial scan feature (g:AmbiCompletion_cacheScanRange) and cache retention feature (g:AmbiCompletion_cacheRetention).
ambicompletion.vim 0.6 2015-11-24 7.0 Shuhei Kubota Each-buffer cache of candidates & Global word completion.
ambicompletion.vim 0.5 2015-11-21 7.0 Shuhei Kubota More timely cache refreshing.
ambicompletion.vim 0.4 2015-02-13 7.0 Shuhei Kubota x10 faster!
more multibyte-completion accuracy
ambicompletion.vim 0.3 2015-02-05 7.0 Shuhei Kubota implemented a simple caching mechanism.
ambicompletion.vim 0.2b 2012-09-03 7.0 Shuhei Kubota fixed encoding handling in +python
ambicompletion.vim 0.2a 2012-08-05 7.0 Shuhei Kubota added encoding handling in +python.
added among-buffers collection by letting g:AmbiCompletion_allBuffers = 1.
ambicompletion.vim 0.1a 2012-05-05 7.3 Shuhei Kubota Initial upload
ip used for rating: 142.132.191.50

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.
   
Vim at Github