QueryCommandComplete : Create completions from an external query command (Ex: mutt's query_command)
| script karma
Downloaded by 125
Comments, bugs, improvements
script versions (upload new version)
|Query Command Complete
Vim plugin to suggest completions with the results of an external
The original intention is to use it as a mutt query_command wrapper
to complete addresses in the mail headers, but it can be adapted
to any other kind of functionality by modifying the exposed setting
Last Change: 2012 Dec 29
Author: Caio Romão <firstname.lastname@example.org>
License: This file is placed in the public domain
Brian Henderson https://github.com/bhenderson
Mark Stillwell https://github.com/marklee77
This plugin exports the completion function QueryCommandComplete,
which can be set as the complete function (or omni function) for
any filetype. If you have a working mutt setup with query_command
configured, the plugin works out of the box.
au BufRead /tmp/mutt* setlocal omnifunc=QueryCommandComplete
External command that queries for contacts
If empty, QueryCommandComplete tries to guess what command to
run by executing `mutt -Q query_command`.
Separator for each entry in the result from the query
Separator for the fields of an entry from the result
Pattern used to match against the current line to decide
whether to call the query command
Whether to try matching g:qcc_pattern against the current
and any previous line
Pattern to match against the current line when deciding
wether to keep looking for a line that matches g:qcc_pattern
This provides finer control over the recursion, which
is useful if calling the completion on really big files.
|Just put querycommandcomplete.vim inside your plugins folder.
For pathogen/vundle users:
Click on the package to download.
ip used for rating: 18.104.22.168
||New features contributed by marklee77 on github: support for a placeholder (%s) in g:qcc_pattern and multiline feature (on my default if using the plugin without any configuration)
||New functionality contributed by bhenderson on github. Now the plugin can be used without previous configuration when the user has mutt properly setup.