gpt4 book ai didi

git - Vim Bundle vundle 不会安装

转载 作者:太空狗 更新时间:2023-10-29 14:28:15 25 4
gpt4 key购买 nike

平台 - Mac OS- 10.8.5

这是我的 .vimrc 文件,后面是我得到的错误。*我的 git 存储库设置正确 -----* git config --global core.editor "vim"(这是在我的 .bashrc 中设置的)** set -o vi(在我的 .bashrc 中设置)

.vimrc 文件

set nocompatible " be iMproved, required
filetype off " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" alternatively, pass a path where Vundle should install plugins
"let path = '~/some/path/here'
"call vundle#rc(path)

" let Vundle manage Vundle, required
Plugin 'gmarik/vundle'

" The following are examples of different formats supported.
" Keep Plugin commands between here and filetype plugin indent on.
" scripts on GitHub repos
Plugin 'tpope/vim-fugitive'
Plugin 'altercation/vim-colors-solarized'
Plugin 'ervandew/supertab'
Plugin 'klen/python-mode'
Bundle 'vim-ipython'
" Plugin 'ivanov/vim-ipython'
" scripts from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" scripts not on GitHub
" Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
" ...

Bundle 'flazz/vim-colorschemes'

filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - list configured plugins
" :PluginInstall(!) - install (update) plugins
" :PluginSearch(!) foo - search (or refresh cache first) for foo
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Plugin commands are not allowed.
" Put your stuff after this line
"
" Size of a hard tabstop
set tabstop=8 expandtab shiftwidth=4 softtabstop=4

set foldmethod=indent
set foldnestmax=2
set foldlevel=99

" I prefer to fold code with spacebar
nnoremap za
vnoremap zf

set background=dark
colorscheme solarized

" Have supertab use usercompletion by default, for tke sake of ipython
let g:SuperTabDefaultCompletionType = "context"
i

我得到的错误:


492: Not an editor command: ^M
line 6:
E117: Unknown function: vundle#rc
line 10:
E492: Not an editor command: ^M
line 12:
E492: Not an editor command: Plugin 'gmarik/vundle'^M
line 13:
E492: Not an editor command: ^M
line 17:
E492: Not an editor command: Plugin 'tpope/vim-fugitive'^M
line 18:
E492: Not an editor command: Plugin 'altercation/vim-colors-solarized'^M
line 19:
E492: Not an editor command: Plugin 'ervandew/supertab'^M
line 20:
E492: Not an editor command: Plugin 'klen/python-mode'^M
line 21:
E492: Not an editor command: Bundle 'vim-ipython'^M
line 30:
E492: Not an editor command: ^M
line 31:
E492: Not an editor command: Bundle 'flazz/vim-colorschemes'^M
line 32:
E492: Not an editor command: ^M
line 48:
E474: Invalid argument: softtabstop=4^M
line 49:
E492: Not an editor command: ^M
line 50:
E474: Invalid argument: foldmethod=indent^M
line 51:
E474: Invalid argument: foldnestmax=2^M
line 52:
E474: Invalid argument: foldlevel=99^M
line 53:
E492: Not an editor command: ^M
line 57:
E492: Not an editor command: ^M
line 58:
E474: Invalid argument: background=dark^M
line 59:
E185: Cannot find color scheme solarized^M
line 60:
E492: Not an editor command: ^M
line 62:
E15: Invalid expression: "context"^M

最佳答案

插件'gmarik/vundle'

必须是

插件'gmarik/Vundle.vim'

--

另请注意 vundle 做了一些更改,例如“Bundle”应该是“Plugin”而不是

调用 vundle#rc()

现在是

调用 vundle#begin()

关于git - Vim Bundle vundle 不会安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23015427/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com