diff --git a/python/completers/cpp/flags.py b/python/completers/cpp/flags.py index cf3dda03..8b74f041 100644 --- a/python/completers/cpp/flags.py +++ b/python/completers/cpp/flags.py @@ -29,8 +29,9 @@ YCM_EXTRA_CONF_FILENAME = '.ycm_extra_conf.py' NO_EXTRA_CONF_FILENAME_MESSAGE = ('No {0} file detected, so no compile flags ' 'are available. Thus no semantic support for C/C++/ObjC/ObjC++.').format( YCM_EXTRA_CONF_FILENAME ) -GLOBAL_YCM_EXTRA_CONF_FILE = vimsupport.GetVariableValue( - "g:ycm_global_ycm_extra_conf" ) +GLOBAL_YCM_EXTRA_CONF_FILE = os.path.expanduser( + vimsupport.GetVariableValue( "g:ycm_global_ycm_extra_conf" ) +) class Flags( object ): def __init__( self ):