5

Vim has excellent inbuilt autocompletions. I've noticed that using C-x C-k (see :h i_CTRL-X_CTRL-K for more) for dictionary completion will not respect the case by default.

For instance, if I type Carr, Vim might suggest carrot instead of Carrot. Is there a way to have vim respect case (or at least offer to respect case) with dictionary autocompletion?

1 Answer 1

5

Adding:

set smartcase

to your vimrc should fix your problem

1
  • infercase could also be set, I think. Ah, but it implies ignorecase. Feb 17, 2015 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.