mirror of
https://github.com/vim-scripts/VimCompletesMe.git
synced 2026-03-01 18:24:13 +01:00
* Provide a way to fallback to keyword completion if completion with b:vcm_tab_complete variable fails * Simplified a lot of the code * Fix a minor helptag reference
25 lines
885 B
Plaintext
25 lines
885 B
Plaintext
This is a mirror of http://www.vim.org/scripts/script.php?script_id=4902
|
|
|
|
A super simple, super minimal, super light-weight tab-completion plugin for Vim.
|
|
|
|
Without configuration, the Tab key will:
|
|
|
|
Use Vim's local keyword completion (Ctrl-X_Ctrl-N).
|
|
Complete a file path (Ctrl-X_Ctrl-F)
|
|
Offer omni-completion after typing a period. (Ctrl-X_Ctrl-O)
|
|
|
|
With a b:vcm_tab_complete variable, the Tab key will complete using:
|
|
|
|
Dictionary words (Ctrl-X_Ctrl-K)
|
|
User-defined completion (Ctrl-X_Ctrl-U)
|
|
Tags (Ctrl-X_Ctrl-])
|
|
Vim command line (Ctrl-X_Ctrl-V)
|
|
|
|
You can set the b:vcm_tab_complete variable interactively, or in an autocommand:
|
|
|
|
autocmd FileType text,markdown let b:vcm_tab_complete = 'dict'
|
|
|
|
Striving for minimalism, this plugin weighs under 80 lines of code.
|
|
|
|
Note: You can always get the latest version on github: https://github.com/ajh17/VimCompletesMe
|