1

When I type some letters and hit CTRL+P, vim shows a list of possible words that may complete my letters. On the left of the list, it shows the completed word. And on the right of the list, it shows where vim finds the word (like a name of a file that contains the word).

However, if there's only one possible word, vim doesn't show the list but just shows -- Keyword completion (^N^P) The only match on the status bar. How to make vim show where it finds the word as well?

3
  • What plugin(s) are you using for completion?
    – B Layer
    Jun 20 at 3:48
  • @BLayer I'm not using any plugin. I installed gvim on Windows and the function is already there when I hit CTRL+P. I believe it's a built-in function.
    – Haoshu
    Jun 20 at 4:24
  • Okay, cool, just wanted to verify.
    – B Layer
    Jun 20 at 4:42

Your Answer

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

Browse other questions tagged or ask your own question.