summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2011-07-20 16:37:24 +0200
committerBram Moolenaar <bram@vim.org>2011-07-20 16:37:24 +0200
commite5ad02d1928800303422056355bfa3f726c9d4b6 (patch)
tree0aa89697e3c25fff9fa67cd971726076a30f424b
parenta823195f2943051e439e0c08fbdb10c727e51e34 (diff)
downloadvim-e5ad02d1928800303422056355bfa3f726c9d4b6.tar.gz
updated for version 7.3.257v7.3.257v7-3-257
Problem: Not all completions are available to user commands. Solution: Add "color", "compiler", "file_in_path" and "locale". (Dominique Pelle)
-rw-r--r--runtime/doc/map.txt4
-rw-r--r--src/ex_docmd.c7
-rw-r--r--src/version.c2
3 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index 103cb54b..2ebf2ebc 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1211,17 +1211,21 @@ completion can be enabled:
-complete=augroup autocmd groups
-complete=buffer buffer names
+ -complete=color color schemes
-complete=command Ex command (and arguments)
+ -complete=compiler compilers
-complete=cscope |:cscope| suboptions
-complete=dir directory names
-complete=environment environment variable names
-complete=event autocommand events
-complete=expression Vim expression
-complete=file file and directory names
+ -complete=file_in_path file and directory names in |'path'|
-complete=filetype filetype names |'filetype'|
-complete=function function name
-complete=help help subjects
-complete=highlight highlight groups
+ -complete=locale locale names (as output of locale -a)
-complete=mapping mapping name
-complete=menu menus
-complete=option options
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 3e80b329..a6fa374b 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -5297,7 +5297,9 @@ static struct
{
{EXPAND_AUGROUP, "augroup"},
{EXPAND_BUFFERS, "buffer"},
+ {EXPAND_COLORS, "color"},
{EXPAND_COMMANDS, "command"},
+ {EXPAND_COMPILER, "compiler"},
#if defined(FEAT_CSCOPE)
{EXPAND_CSCOPE, "cscope"},
#endif
@@ -5310,10 +5312,15 @@ static struct
{EXPAND_EVENTS, "event"},
{EXPAND_EXPRESSION, "expression"},
{EXPAND_FILES, "file"},
+ {EXPAND_FILES_IN_PATH, "file_in_path"},
{EXPAND_FILETYPE, "filetype"},
{EXPAND_FUNCTIONS, "function"},
{EXPAND_HELP, "help"},
{EXPAND_HIGHLIGHT, "highlight"},
+#if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
+ && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE))
+ {EXPAND_LOCALES, "locale"},
+#endif
{EXPAND_MAPPINGS, "mapping"},
{EXPAND_MENUS, "menu"},
{EXPAND_OWNSYNTAX, "syntax"},
diff --git a/src/version.c b/src/version.c
index 3783bbf0..6c1cfdcc 100644
--- a/src/version.c
+++ b/src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 257,
+/**/
256,
/**/
255,