Blob README
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
Query Command Complete ====================== Vim plugin to suggest completions with the results or an external query command. 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 parameters. Last Change: 2012 Sep 17 Maintainer: Caio Romão <caioromao@gmail.com> License: This file is placed in the public domain Contributors: Brian Henderson <https://github.com/bhenderson> Setup: 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. Example: let g:qcc_query_command='abook' au BufRead /tmp/mutt* setlocal omnifunc=QueryCommandComplete Settings: g:qcc_query_command External command that queries for contacts If empty, QueryCommandComplete tries to guess what command to run by executing `mutt -Q query_command`. g:qcc_line_separator Separator for each entry in the result from the query default: '\n' g:qcc_field_separator Separator for the fields of an entry from the result default: '\t' g:qcc_pattern Pattern used to match against the current line to decide whether to call the query command default: '^\(To\|Cc\|Bcc\|From\|Reply-To\):' |