使用vundle安装时,在.vimrc中添加 Plugin 'Valloric/YouCompleteMe' 使用Bundle会安装失败原因未知 YCM编译时附加选项--system-libclang使用系统的clang包 我的vim配置 set tabstop= set softtabstop= set shiftwidth= set noexpandtab set nu set autoindent set cindent set nocompatible filetype off set
1.打开vimrc文件 sudo vi /usr/share/vim/vimrc 2.添加 set filetype=python au BufNewFile,BufRead *.py,*.pyw setf python set autoindent " same level indent set smartindent " next level indent set expandtab set tabstop=4 set shiftwidth=4 set softtabstop=4