Ubuntu 我得到的是;处理~/vimrc";时检测到错误;在编写c+时+;论维姆 我想在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

Ubuntu 我得到的是;处理~/vimrc";时检测到错误;在编写c+时+;论维姆 我想在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,ubuntu,vim,Ubuntu,Vim,看起来您已将一些文本粘贴到.vimrc中,并且存在不需要的换行符,因此此文本(应为前一行的一部分)位于其自己的行上: early as 这不是有效的vim命令,因此会导致错误 打开.vimrc并在第2行中添加“字符,或转到第1行并按J键连接这些行 line 9: E117: Unknown function: vundle#begin 这表明vundle文件未安装在~/.vim/bundle/vundle.vim中--如果要使用这些文件,需要安装它们!FYI-有关Vi和vim的问题。

看起来您已将一些文本粘贴到
.vimrc
中,并且存在不需要的换行符,因此此文本(应为前一行的一部分)位于其自己的行上:

early as
这不是有效的vim命令,因此会导致错误

打开
.vimrc
并在第2行中添加
字符,或转到第1行并按J键连接这些行

line    9:
E117: Unknown function: vundle#begin
这表明vundle文件未安装在
~/.vim/bundle/vundle.vim
中--如果要使用这些文件,需要安装它们!

FYI-有关Vi和vim的问题。
line    9:
E117: Unknown function: vundle#begin