我使用vundle安装了YouCompleteMe.
然后安装所有插件并使用安装YCM
原文链接:https://www.f2er.com/bash/384653.html然后安装所有插件并使用安装YCM
./install.sh --clang-completer
这就是我的vimrc的样子:
Syntax on set expandtab set cindent set tabstop=4 retab set shiftwidth=4 set hlsearch set paste set ic set number colorscheme molokai set t_Co=256 set nocompatible " be iMproved,required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'gmarik/Vundle.vim' Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-repeat' Plugin 'kien/ctrlp.vim' Plugin 'sjl/gundo.vim' Plugin 'Valloric/YouCompleteMe' Plugin 'scrooloose/syntastic' Plugin 'Valloric/ListToggle' call vundle#end() " required filetype plugin indent on "options for syntastic" set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_python_checkers=['pep8','pylint','python'] let g:syntastic_enable_signs=1 let g:syntastic_auto_loc_list=1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 1 let g:syntastic_error_symbol = "X" let g:syntastic_style_error_symbol = ">" let g:syntastic_warning_symbol = "!" let g:syntastic_style_warning_symbol = ">" let g:syntastic_echo_current_error=1 let g:syntastic_enable_balloons = 1 let g:syntastic_auto_jump=1 "Gundo options" nnoremap <F5> :GundoToggle<CR> "CtrlP options" let g:ctrlp_map = '<c-p>' let g:ctrlp_cmd = 'CtrlP' "Powerline stuff" python from powerline.vim import setup as powerline_setup python powerline_setup() python del powerline_setup set laststatus=2
YCM有效但我无法使用TAB切换建议,仅使用向下和向上箭头并使用回车接受.
为什么会这样?另一个程序是否使用TAB键?
非常感谢您的帮助