October 2015
Intermediate to advanced
356 pages
7h 54m
English
| Tip 114 | Understand the Source of Keywords |
Generic keyword autocompletion compiles its word list from a handful of sources. We can be more specific about which sources we want to use.
Several forms of autocompletion use a specific file or set of files to generate their word list. Generic keyword autocompletion uses an amalgamation of these word lists. To understand where generic keywords come from, we should first look at each of the more targeted forms of autocompletion.
The simplest mechanism for populating the autocomplete word list would be to use words only from the current buffer. Current file keyword completion does just that and is triggered with <C-x><C-n> (see compl-currentⓘ). This can be useful when generic keyword ...