API: Implement vim_get_vvar

This commit is contained in:
Thiago de Arruda 2014-05-12 19:10:06 -03:00
parent 5d0cb370f6
commit f69b0a1dc7
2 changed files with 12 additions and 0 deletions

View File

@ -152,6 +152,11 @@ Object vim_set_var(String name, Object value, Error *err)
return dict_set_value(&globvardict, name, value, err);
}
Object vim_get_vvar(String name, Error *err)
{
return dict_get_value(&vimvardict, name, err);
}
Object vim_get_option(String name, Error *err)
{
return get_option_from(NULL, SREQ_GLOBAL, name, err);

View File

@ -76,6 +76,13 @@ Object vim_get_var(String name, Error *err);
/// @return the old value if any
Object vim_set_var(String name, Object value, Error *err);
/// Gets a vim variable
///
/// @param name The variable name
/// @param[out] err Details of an error that may have occurred
/// @return The variable value
Object vim_get_vvar(String name, Error *err);
/// Get an option value string
///
/// @param name The option name