@@ -2562,6 +2562,7 @@ foldlevel({lnum}) Number fold level at {lnum}
25622562foldtext() String line displayed for closed fold
25632563foldtextresult({lnum}) String text for closed fold at {lnum}
25642564foreground() Number bring the Vim window to the foreground
2565+ fullcommand({name}) String get full command from {name}
25652566funcref({name} [, {arglist}] [, {dict}])
25662567 Funcref reference to function {name}
25672568function({name} [, {arglist}] [, {dict}])
@@ -4902,6 +4903,21 @@ foreground() Move the Vim window to the foreground. Useful when sent from
49024903 {only in the Win32, Athena, Motif and GTK GUI versions and the
49034904 Win32 console version}
49044905
4906+ fullcommand({name}) *fullcommand()*
4907+ Get the full command name from a short abbreviated command
4908+ name; see |20.2| for details on command abbreviations.
4909+
4910+ {name} may start with a `:` and can include a [range], these
4911+ are skipped and not returned.
4912+ Returns an empty string if a command doesn't exist or if it's
4913+ ambiguous (for user-defined functions).
4914+
4915+ For example `fullcommand('s')`, `fullcommand('sub')`,
4916+ `fullcommand(':%substitute')` all return "substitute".
4917+
4918+ Can also be used as a |method|: >
4919+ GetName()->fullcommand()
4920+ <
49054921 *funcref()*
49064922funcref({name} [, {arglist}] [, {dict}])
49074923 Just like |function()|, but the returned Funcref will lookup
0 commit comments