12
7
In Vim, I'm aware of using CTRL-n and CTRL-p to autocomplete words found in the document. This is great for promoting the use of descriptive method and variable names.
I would like to add a set of words to autocomplete that I often but are not in the source file I'm currently editing. My current solution is to just add the list of words to a comment at the bottom of my template file, but that seems a bit wasteful and kludgey at best.
Is there a way to add words to Vim's autocomplete vocabulary that would be accessible to every Vim session?
1fantastic! i am going to use dictionaries! – madh – 2010-01-29T21:33:43.190
This worked! I don't get that nice looking menu though. I'm using VIM 6.3.82, which is not the latest version. – madh – 2010-01-30T00:33:23.877
Ah... does updating help? You need to press the sequence Ctrl-x, Ctrl-k to bring up the menu. Glad to help though :) – John T – 2010-01-30T02:33:55.593
This is the proper way. – at. – 2010-01-30T23:56:28.313
Just checked that this works in VIM 7.2. Thanks again! – madh – 2010-02-05T17:22:33.717
You're very welcome! – John T – 2010-02-05T17:45:59.603
looks like the picture is not there anymore – UncleZeiv – 2010-02-08T13:48:16.400