From 66289d7522387947771e23652604213bed313e87 Mon Sep 17 00:00:00 2001 From: bear Date: Mon, 18 Feb 2013 13:58:22 +0800 Subject: [PATCH] let g:ycm_global_ycm_extra_conf can use "~" --- python/completers/cpp/flags.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ):