我的桌面上有一个.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
答案 0 :(得分:1)
您需要在笔记本电脑上安装Vundle。这是他们的installation instructions;你失踪的部分似乎是
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set rtp
命令将~/.vim/bundle/Vundle.vim
添加到Vim的路径,这样就可以在下一行找到vundle#begin()
。
答案 1 :(得分:0)
我想回到我的问题,或许可以帮助那些降落在这里的人 我认为@Kristjan的答案解决了我的问题,但事实并非如此。然后我找到了这个git存储库:https://github.com/VundleVim/Vundle.vim
和自述文件的第4步:
安装插件:
启动vim并运行:PluginInstall
从命令行安装:vim + PluginInstall + qall
这实际上是缺少的一步。当你复制.vim目录和.vimrc时,你需要安装,我没有这样做