def BuildServerConf():
 keys = vimsupport.GetVimGlobalsKeys()
 server_conf = {}
 for key in keys:
  if (not key.startswith(YCM_VAR_PREFIX)):
   continue
  new_key = key[len(YCM_VAR_PREFIX):]
  new_value = vimsupport.VimExpressionToPythonType((u'g:' + key))
  server_conf[new_key] = new_value
 return server_conf

def BuildServerConf ( ) : keys = vimsupport . GetVimGlobalsKeys ( ) server_conf = { } for key in keys : if ( not key . startswith ( YCM_VAR_PREFIX ) ) : continue new_key = key [ len ( YCM_VAR_PREFIX ) : ] new_value = vimsupport . VimExpressionToPythonType ( ( u'g:' + key ) ) server_conf [ new_key ] = new_value return server_conf
builds a dictionary mapping ycm vim user options to values .