diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index ecac0fd0..d6a6ca0b 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -83,7 +83,7 @@ function! youcompleteme#Enable() py import sys py import vim - exe 'python sys.path = sys.path + ["' . s:script_folder_path . '/../python"]' + exe 'python sys.path.insert( 0, "' . s:script_folder_path . '/../python" )' py import ycm py ycm_state = ycm.YouCompleteMe()