A word fuzzy completion plugin for vim.

Bence DOMONKOS 850c210665 plugin: Port to python3 1 month ago
plugin 850c210665 plugin: Port to python3 1 month ago
README 0c0901a453 README: Fix spelling and whitespaces 1 month ago

README

Description:
A word fuzzy completion plugin for vim.

Requirement:
+python vim support.

Installation:
Just download the file `wordfuzzycompletion.vim` into ~/.vim/plugins and then restart vim.

Use mode:
Put vim in insert mode and then you start typing, when you typed a part of a
word press either Ctrl-x Ctrl-u or Ctrl-k to see the list of similar words in
the current buffer and select one.

If there are just one result, then the typed word is replaced.

Example:
Suppose that your buffer contains above text:
------------------------
1 The simpsons
2 Futurama
3 Back to the Future.
4 Features
~
------------------------
then:
1) type
sminsons
word must be changed to:
simpsons
2) type
smi
word must be changed to:
simpsons
3) type
furure
word must be changed to:
future
4) type
Furu
so, must be showed a list of similar words:
Fururama
Future
Features

NOTE: as it is the first version of plugin there are some bugs, so, you are
welcome either to report them to me or fix them!.

Customization:

Certain things can be customized by the definition of some vim variables in
your ~/.vimrc file.

Variables:
> g:fuzzywordcompletion_disable_keybinding:
- Default:0
- Details: This variable can be to used to tell the plugin that the ''
binding should not be mapped.
Example:
let g:fuzzywordcompletion_disable_keybinding=1

> g:fuzzywordcompletion_maxresults:
- Default: 10
- Details: This variable has the control over the result list length.
Yo can define this variable in the ~/.vimrc to change it.
Example:
let g:fuzzywordcompletion_maxresults=20

>g:fuzzywordcompletion_completiontable:
- Default: Preserves alphanumeric chars + '_'.
- Details: This variable contains an array of 256 bytes that represents the
translation table that will be used to split words. Each position should be
completed with the char that will replace the pointed position.
For example, if you want that words will be split with the '0' char, you
must put a ' ' in the position 48 of the table ('0'=48 ascii).