October 2012
346 pages
7h 40m
English
| Tip 117 | Autocomplete with Context Awareness |
Omni-completion is Vim’s answer to intellisense. It provides a list of suggestions that’s tailored for the context of the cursor position. In this tip, we’ll look at how it works in the context of a CSS file.

Omni-completion is triggered with the <C-x><C-o> command (see compl-omni
). The functionality is implemented as a file-type plugin, so to activate it we have to source these lines of configuration:
| essential.vim | |
| | set nocompatible |
| | filetype ... |
Read now
Unlock full access