Vim vundle配色方案-vimrc

Vim vundle配色方案-vimrc,vim,Vim,嗨,我一直在尝试在ubuntu上配置vim 所有的软件包似乎都安装得很好。但是,如果通过vundle安装colorscheme,然后使用colorscheme名称,则似乎找不到该方案 我曾尝试安装railscasts、solarized和desert warm,但均未能加载 这是我的,我做错什么了吗 set nocompatible " be iMproved filetype off " required! colorschem

嗨,我一直在尝试在ubuntu上配置vim

所有的软件包似乎都安装得很好。但是,如果通过vundle安装colorscheme,然后使用colorscheme名称,则似乎找不到该方案

我曾尝试安装railscasts、solarized和desert warm,但均未能加载

这是我的,我做错什么了吗

set nocompatible               " be iMproved
filetype off                   " required!

colorscheme desert-warm 

" next tab
map <F7> :tabn    
" previous tab
map <F8> :tabp
" Close Tab abd save
map <F9> ZZ
" open and edit file
map <F6> :tabedit

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'

" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
Bundle 'desert-warm-256'
" vim-scripts repos

Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
Bundle 'https://github.com/vim-scripts/perl-support.vim.git'
Bundle 'https://github.com/Raimondi/delimitMate.git'
Bundle 'https://github.com/altercation/vim-colors-solarized.git'
Bundle 'https://github.com/jpo/vim-railscasts-theme.git'
" ...

filetype plugin indent on     " required!
"
" Brief help
" :BundleList          - list configured bundles
" :BundleInstall(!)    - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
设置不兼容”有待改进
文件类型关闭“必需!
沙漠暖色调
“下一页
地图:塔本
“上一页选项卡
地图:塔布
“关闭选项卡并保存
地图ZZ
“打开并编辑文件
地图:选项卡编辑
设置rtp+=~/.vim/bundle/vundle/
调用vundle#rc()
“让Vundle管理Vundle
“必须!
捆绑“gmarik/vundle”
“我的包在这里:
"
“github上的原始回购协议
捆绑“TPOP/vim逃犯”
捆绑“Lokaltog/vim测量动作”
捆绑包'rstacruz/sparkup',{'rtp':'vim/'}
捆绑“tpope/vim rails.git”
捆绑“沙漠-温暖-256”
“vim脚本回购协议
捆绑“L9”
捆绑“FuzzyFinder”
“非github回购协议
捆绑git://git.wincent.com/command-t.git'
捆绑https://github.com/vim-scripts/perl-support.vim.git'
捆绑https://github.com/Raimondi/delimitMate.git'
捆绑https://github.com/altercation/vim-colors-solarized.git'
捆绑https://github.com/jpo/vim-railscasts-theme.git'
" ...
文件类型插件缩进“必需!
"
“简短的帮助
“:BundleList-列出已配置的捆绑包
“:BundleInstall(!)-安装(更新)捆绑包
“:BundleSearch(!)foo-搜索(或先刷新缓存)foo
“:BundleClean(!)-确认(或自动批准)删除未使用的捆绑包
"
“有关详细信息,请参阅:h vundle;有关常见问题,请参阅wiki。”
“注意:不允许在Bundle命令后添加注释。”。。

尝试将
colorscheme
调用移动到文件末尾


另外,您示例中的配色方案名称对我不适用,它应该是
colorscheme-warm-256
。要查看当前安装的配色方案列表,请尝试以交互方式输入
:colorscheme

colorscheme desert warm
必须位于
Bundle'desert-warm-256'
之后,因为是Bundle命令将内容添加到路径:

Bundle 'desert-warm-256'
colorscheme desert-warm
来源:

注意:Vundle最近(2014-03-18)已改为使用
插件
,而不是
捆绑
,因此在您
git pull
之后:

Plugin 'desert-warm-256'
colorscheme desert-warm

我认为这个问题的答案是在原始海报的.vimrc中没有
调用vundle#end()
语法


添加这两行,例如
调用vundle#end()
之后的
colorscheme solarized
行,就可以解决这个问题。

您应该在插件行之后写“colorsheme desert bla bla”行。因为Vundle首先需要安装这个颜色插件,然后才能使用它。对不起,我的英语很烦人。

谢谢,提示真的很有用。谢谢,在vundle#()之后添加颜色方案行解决了我的问题。我相信vundle的早期版本不需要调用
vundle#end()
。在新机器上进行vundle的git克隆时,我不得不添加这一点。参见示例vimrc