Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

Completing "words" only? #454

Closed ghost closed 11 years ago

ghost commented 11 years ago

Is it possible to suggest only words as results of the autocomplete? And by words I mean text objects that Vim considers words.

I'm asking because in HTML for instance if I start typing class strings like class="control-group pull-right" or even longer suggestions come up. Truncating the length of the suggestions isn't really a solution because I may have words that are very long.

Shougo commented 11 years ago

I'm asking because in HTML for instance if I start typing class strings like class="control-group pull-right" or even longer suggestions come up. Truncating the length of the suggestions isn't really a solution because I may have words that are very long.

No. Because it created by css omnifunc. To complete words only, you must disable css omnifunc.