1
0
forked from aniani/vim

Support syntax and filetype completion for user commands. (Christian Brabandt)

This commit is contained in:
Bram Moolenaar
2010-07-31 14:59:19 +02:00
parent 460fbaca72
commit a26559b553
4 changed files with 24 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
*map.txt* For Vim version 7.3c. Last change: 2010 Jul 27 *map.txt* For Vim version 7.3c. Last change: 2010 Jul 31
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1208,13 +1208,15 @@ completion can be enabled:
-complete=event autocommand events -complete=event autocommand events
-complete=expression Vim expression -complete=expression Vim expression
-complete=file file and directory names -complete=file file and directory names
-complete=shellcmd Shell command -complete=filetype filetype names |'filetype'|
-complete=function function name -complete=function function name
-complete=help help subjects -complete=help help subjects
-complete=highlight highlight groups -complete=highlight highlight groups
-complete=mapping mapping name -complete=mapping mapping name
-complete=menu menus -complete=menu menus
-complete=option options -complete=option options
-complete=shellcmd Shell command
-complete=syntax syntax file names |'syntax'|
-complete=tag tags -complete=tag tags
-complete=tag_listfiles tags, file names are shown when CTRL-D is hit -complete=tag_listfiles tags, file names are shown when CTRL-D is hit
-complete=var user variables -complete=var user variables

View File

@@ -1,4 +1,4 @@
*tabpage.txt* For Vim version 7.3c. Last change: 2007 Mar 11 *tabpage.txt* For Vim version 7.3c. Last change: 2010 Jul 31
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -58,17 +58,19 @@ clicking right of the labels.
In the GUI tab pages line you can use the right mouse button to open menu. In the GUI tab pages line you can use the right mouse button to open menu.
|tabline-menu|. |tabline-menu|.
:tabe[dit] *:tabe* *:tabedit* *:tabnew* :[count]tabe[dit] *:tabe* *:tabedit* *:tabnew*
:tabnew Open a new tab page with an empty window, after the current :[count]tabnew
tab page. Open a new tab page with an empty window, after the current
tab page. For [count] see |:tab| below.
:tabe[dit] [++opt] [+cmd] {file} :[count]tabe[dit] [++opt] [+cmd] {file}
:tabnew [++opt] [+cmd] {file} :[count]tabnew [++opt] [+cmd] {file}
Open a new tab page and edit {file}, like with |:edit|. Open a new tab page and edit {file}, like with |:edit|.
For [count] see |:tab| below.
:tabf[ind] [++opt] [+cmd] {file} *:tabf* *:tabfind* :[count]tabf[ind] [++opt] [+cmd] {file} *:tabf* *:tabfind*
Open a new tab page and edit {file} in 'path', like with Open a new tab page and edit {file} in 'path', like with
|:find|. |:find|. For [count] see |:tab| below.
{not available when the |+file_in_path| feature was disabled {not available when the |+file_in_path| feature was disabled
at compile time} at compile time}
@@ -77,9 +79,11 @@ In the GUI tab pages line you can use the right mouse button to open menu.
page instead. Doesn't work for |:diffsplit|, |:diffpatch|, page instead. Doesn't work for |:diffsplit|, |:diffpatch|,
|:execute| and |:normal|. |:execute| and |:normal|.
When [count] is omitted the tab page appears after the current When [count] is omitted the tab page appears after the current
one. When [count] is specified the new tab page comes after one.
tab page [count]. Use ":0tab cmd" to get the new tab page as When [count] is specified the new tab page comes after tab
the first one. Examples: > page [count]. Use ":0tab cmd" to get the new tab page as the
first one.
Examples: >
:tab split " opens current buffer in new tab page :tab split " opens current buffer in new tab page
:tab help gt " opens tab page with help for "gt" :tab help gt " opens tab page with help for "gt"

View File

@@ -1,4 +1,4 @@
*todo.txt* For Vim version 7.3c. Last change: 2010 Jul 30 *todo.txt* For Vim version 7.3c. Last change: 2010 Jul 31
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -30,6 +30,8 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs* *known-bugs*
-------------------- Known bugs and current work ----------------------- -------------------- Known bugs and current work -----------------------
After ":diffoff" scroll binding doesn't stop completely.
Windows 7: "Open with..." menu starts Vim without a file. Windows 7: "Open with..." menu starts Vim without a file.
Need to use other registry methods in if_ole.cpp? Need to use other registry methods in if_ole.cpp?
@@ -40,10 +42,6 @@ Move more common code from if_python.c and if_python3.c to if_py_both.h
Add filetype completion to user commands. (Christian Brabandt, 2010 Jul 26) Add filetype completion to user commands. (Christian Brabandt, 2010 Jul 26)
But call it "filetype" instead of "syntax"? But call it "filetype" instead of "syntax"?
ftplugin/mupad.vim should not source AppendMatchGroup.vim, it should use an
autoload function.
Same for indent/GenericIndent.vim
Uninspected issues on http://scan.coverity.com/rung2.html Uninspected issues on http://scan.coverity.com/rung2.html
Before release 7.3: Before release 7.3:

View File

@@ -5277,11 +5277,13 @@ static struct
{EXPAND_EVENTS, "event"}, {EXPAND_EVENTS, "event"},
{EXPAND_EXPRESSION, "expression"}, {EXPAND_EXPRESSION, "expression"},
{EXPAND_FILES, "file"}, {EXPAND_FILES, "file"},
{EXPAND_FILETYPE, "filetype"},
{EXPAND_FUNCTIONS, "function"}, {EXPAND_FUNCTIONS, "function"},
{EXPAND_HELP, "help"}, {EXPAND_HELP, "help"},
{EXPAND_HIGHLIGHT, "highlight"}, {EXPAND_HIGHLIGHT, "highlight"},
{EXPAND_MAPPINGS, "mapping"}, {EXPAND_MAPPINGS, "mapping"},
{EXPAND_MENUS, "menu"}, {EXPAND_MENUS, "menu"},
{EXPAND_OWNSYNTAX, "syntax"},
{EXPAND_SETTINGS, "option"}, {EXPAND_SETTINGS, "option"},
{EXPAND_SHELLCMD, "shellcmd"}, {EXPAND_SHELLCMD, "shellcmd"},
#if defined(FEAT_SIGNS) #if defined(FEAT_SIGNS)