Re:Built-In Vim Autocomplete
by k26dr on Sunday March 26, 2017 @10:42AM
(#13961003)
This whole time I had no idea vim could autocomplete
[ Parent
| on HN ]
This is classic "string-based" autocomplete. It completes based on strings it knows about but doesn't take into account the context. I've used for years but yesterday I realized that since Vim version 7 there's a more intelligent kind of autocomplete triggered by C-x C-o that is context-aware. It can complete object methods, HTML tag attribtes, CSS properties, etc. For info:
:help new-omni-completion