Giter Site home page Giter Site logo

vim-simple-complete's People

Contributors

maxboisvert avatar vimnewbie93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vim-simple-complete's Issues

Unexpectedly deleting typed characters

Open a new buffer, press the following key sequence:

iaaa111_aa<C-c>

This results in the following buffer:

aaa111_aa

Now type the following keys:

oaaa111_bb<C-c>

This should result in the following buffer:

aaa111_aa
aaa111_bb

But it actually results in the this buffer:

aaa111_aa
aaa

The completion script seems to see that there's no match and instead of leaving the typed characters, it deletes several characters.

Incompatible with completion continuation

This is a very nice plugin. I like the code a lot too. Beatifully written. You're a poet. I'm even sorry to have to report this problem, since fixing it would possibly make the code uglier. But let's go to it.

Without your plugin, if I have a text file like the following, where the | stands for the cursor in insert mode,

This is nice code.
That is not nice code.
Thi|

pressing <c-p><c-x><c-p><c-x><c-p> gives you this:

This is nice code.
That is not nice code.
This is nice code.|

With your plugin, beginning with the same text, you already get the popdown menu indicating the completion to This. If I press <enter> the completion happens, but then I can't do <c-x><c-p><c-x><c-p> to get the continuation. The only way to do continuation, with your plugin, is never pressing <enter> to begin with, and then press <c-p><c-p><c-x><c-p><c-p><c-p><c-x><c-p><c-p><c-p><c-x><c-p><c-p><c-p>. Way more keystrokes than necessary.

This is just to let you know. I don't quite understand why this happens so and also couldn't find a way to fix the code myself, but thought that you'd like to know about the issue.

As-you-type-completion not highlighting first completion item

Prior version highlighted the first item for immediate insertion with Enter. Now, the item must be tabbed to, to select first then Enter. The original behaviour saved me a keystroke!

EDIT: removed my comment about my backup code. It contains the explicit matchstring in s:TabCompletePlugin() and other lines that have been replaced.

vimwiki conflict

Like this plugin very much. The only plugin I currently have problems with is vimwiki (when editing vimwiki files). Pressing enter to select the completion does not insert the selected item. In fact, it inserts a CR instead! Not sure why vimwiki appears to be intercepting the CR before simple-complete and whether anything can be down done to correct this.

Auto-complete when only one option

Thanks for the plugin, really really useful.

Its possible to insert the completation without showing the menu
when we have only one option ?.

Bug report: auto completion does not start after backspace.

Repro:

Suppose I have this file
"
123456789
123456780
123456781

"
In the 4th line, I type 1234, after 3 has been typed, auto completion kicks in. This is expected. Then I backspace 4 times, which restores the file. Then type 1234 again.

Observed:
Auto completion cannot kick in.

Expected:
Auto completion kick in again. ('vim-scripts/AutoComplPop' has this behavior)

Thanks.

Error when opening Voom plugin file

Hello,

I'm using @airblade's https://github.com/airblade/voom Vim plugin manager and I've noticed that when using your tab complete plugin I get the following error:

$ voom edit
Error detected while processing function Init..TypeCompletePlugin:
line    4:
E474: Invalid argument: completeopt=menu,menuone,noinsert,preview
line    6:
E216: No such group or event: InsertCharPre * call TypeComplete()
Press ENTER or type command to continue

Do you have any idea on what might be causing this and how I could resolve it?

Thanks :-)

Cursor jumps with closetag.vim

There is an issue with closetag.vim, which completely makes that unuseful. when typing a single > in insert mode, the cursor jumps to the upper line and I have to move it back to position. Unfortunately, I'm not able to understand and modify vimscripts and therefore logic behind this plugin to make a pull request.

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.