api: Implement vim_command_output function

This function can be used by API clients to execute a command and capture the
output.
This commit is contained in:
Thiago de Arruda
2014-06-05 08:25:53 -03:00
committed by Justin M. Keyes
parent c28adf15e6
commit 94f59fc9be
3 changed files with 16 additions and 1 deletions

View File

@@ -424,7 +424,8 @@ static struct vimvar {
{VV_NAME("oldfiles", VAR_LIST), 0},
{VV_NAME("windowid", VAR_NUMBER), VV_RO},
{VV_NAME("progpath", VAR_STRING), VV_RO},
{VV_NAME("job_data", VAR_LIST), 0}
{VV_NAME("job_data", VAR_LIST), 0},
{VV_NAME("command_output", VAR_STRING), 0}
};
/* shorthand */