[英]I am getting the the "Error detected while processing ~/vimrc" while writing c++ on Vim
我想在 vim 上使用 c++,但出现 vimrc 错误
" use vim settings, rather than vi settings. this setting must be as
early as
" possible, as it has side effects. this is required for vundle.
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" add other plugins here...
Plugin 'jamessan/vim-gnupg'
Bundle 'croaky/vim-colors-github'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
~
$ vim ~/.vimrc
Error detected while processing /home/tridip/.vimrc:
line 2:
E492: Not an editor command: early as
line 9:
E117: Unknown function: vundle#begin
line 12:
E492: Not an editor command: Plugin 'gmarik/Vundle.vim'
line 15:
E492: Not an editor command: Plugin 'jamessan/vim-gnupg'
line 16:
E492: Not an editor command: Bundle 'croaky/vim-colors-github'
line 19:
E117: Unknown function: vundle#end
Press ENTER or type command to continue
Error detected while processing /home/tridip/.vimrc:
line 2:
E492: Not an editor command: early as
看起来您已将一些文本粘贴到.vimrc
并且存在不需要的换行符,因此应属于前一行的此文本位于其自己的行上:
early as
这不是有效的 vim 命令,因此会导致错误。
打开您的.vimrc
并将"
字符添加到第 2 行,或者转到第 1 行并按J加入这些行。
line 9:
E117: Unknown function: vundle#begin
这表明 vundle 文件没有安装在~/.vim/bundle/Vundle.vim
——如果你想使用这些文件,你需要安装它们!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.