Giter Club home page Giter Club logo

vim-wordfuzzycompletion-plugin's Introduction

script type
utility

 
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<press Ctrl-k>
  word must be changed to:
  simpsons
  2) type
  smi<press Ctrl-k>
  word must be changed to:
  simpsons
  3) type
  furure<press Ctrl-k>
  word must be changed to:
  future
  4) type
  Furu<press Ctrl-k>
  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 
wellcome 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 '<Ctrl-k>' 
    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 lenght.
    Yo can define this variable in the ~/.vimrc to change it.
    Example:
        let g:fuzzywordcompletion_maxresults=20

>g:fuzzywordcompletion_completiontable: 
  - Default: Preserves alfanumeric 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 splitted with the '0' char, you 
    must put a ' ' in the position 48 of the table ('0'=48 ascii).
  

vim-wordfuzzycompletion-plugin's People

Contributors

jaanauati avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ipirlo tinoucas

vim-wordfuzzycompletion-plugin's Issues

Glob * or regexp completion

Hello, do you think it is manageable to make a regexp fuzzy completion given the words in the currents buffers? (similar to the default file completion)
Given the example of 'simpson', to get it from the fuzzy word 'si*n' or 'si.*n' .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.