Wiki

by yszheda

View project onGitHub

Tip 117: Autocomplete with Context Awareness

Return to the top: <<Practical Vim>>

  • triggered by <C-x><C-o>

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h compl-omni
  • To active the functionality:
    set nocompatible
    filetype plugin on
    

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h compl-omni-filetypes
  • To write omni-completion plugins

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h complete-functions