Shougo / neocomplete.vim

Next generation completion framework after neocomplcache
2.74k stars 203 forks source link

*fill-in* the first candidate (google chrome's style) #21

Closed 257 closed 11 years ago

257 commented 11 years ago

is it possible to have an autocompletion like the way google's chrome autcompletes URL's?

my first impression, btw, was that this would accomplish what i'm looking for: inoremap neocomplete#complete_common_string()

a gift animated would perhaps expalin this best but while i'm looking for an git-animation editor (suggstions are welcomed).

Shougo commented 11 years ago

g:neocomplete#enable_auto_select variable is available.

257 commented 11 years ago

not exactly. perhaps i should have explain better. with enable_auto_select the first candidate is 'highlighted' but is not put in front of the cursor. that's a big difference because, visually, when the candidate is filled-in then user can instantly see the result.

plus there i haven't been able to figure out how to complete my string with 'highlighted' candidate in the case where suggestions are more than one. that is, if we have more than one candidate then TAB would cycle into the next candidate but wouldn't select the initial candidate (the one suggested at the beginning).

ideally TAB or SPACE would complete in two different ways, either put the cursor at the end of the 'word' (that seems to fit TAB) or put the cursor one space after the 'word' (SPACE). sort of like 'e' and 'w' in vi. and of course second TAB would cycle through suggestions.

Shougo commented 11 years ago

OK. I get it. But I don't want to implement this feature.