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?



set smartcase

to your vimrc should fix your problem

| improve this answer | |
  • infercase could also be set, I think. Ah, but it implies ignorecase. – Gonçalo Ribeiro Feb 17 '15 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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