Tip 113: Understand the Source of Keywords
Return to the top: <<Practical Vim>>
The Buffer List
triggered with <C-x><C-n>
References:
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h compl-current
inspect the buffer list:
:ls!
Included Files
triggered with <C-x><C-i>
References:
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h compl-keyword
tweak the 'include' setting for recognising more languages' directive
References:
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h 'include'
Tag Files
triggered with <C-x><C-]>
References:
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h compl-tag
Customizing the Generic Autocompletion
- Customize the list of places that are scanned by generic keyword completion using the 'complete' option.
-
The default setting is:
complete=.,w,b,u,t,i
-
enable completion of words in the spelling dictionary by running:
:set complete+=k
References:
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h 'complete'