我的桌面上有一个.vimrc文件,放在github上。把它查到我的笔记本电脑上,我就会发现这些错误。Vim 7.4.52,lubuntu
Error detected while processing /home/jcg/.vimrc:
line 5:
E117: Unknown function: vundle#begin
line 8:
E492: Not an editor command: Plugin 'gmarik/Vundle.vim'
line 13:
E492: Not an editor command: Plugin 'bling/vim-airline'
line 16:
E492: Not an editor command: Plugin 'tpope/vim-fugitive'
line 19:
E492: Not an editor command: Plugin 'klen/python-mode'
line 21:
E117: Unknown function: vundle#end.vimrc文件:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle -- required!
Plugin 'gmarik/Vundle.vim'
" The bundles you install will be listed here
" vim-airline status line from github
Plugin 'bling/vim-airline'
" git from within vim
Plugin 'tpope/vim-fugitive'
" python mode
Plugin 'klen/python-mode'
call vundle#end()
filetype plugin indent on发布于 2016-01-30 00:29:58
我想回到我的问题上来,也许是为了帮助一个降落在这里的人。
我认为@Kristjan的答案解决了我的问题,但它没有解决。
在自述的第4步中:
安装插件:
启动vim并运行:PluginInstall
从命令行安装: vim +PluginInstall +qall
这实际上是错过的一步。当您复制.vim目录和.vimrc时,需要安装,但我没有这样做。
发布于 2016-01-16 17:29:35
你需要在你的笔记本电脑上安装Vundle。这是他们的安装说明;你缺少的部分似乎是
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vimset rtp命令将~/.vim/bundle/Vundle.vim添加到Vim的path中,这样可以在下一行中找到vundle#begin()。
https://stackoverflow.com/questions/34829840
复制相似问题