嗨,我一直在尝试在ubuntu上配置vim。
所有的软件包似乎都安装得很好。但是,如果通过vundle安装颜色方案,然后使用着色方案名称,则似乎找不到该方案。
我试图安装栏杆,太阳能和沙漠温暖,但都没有装载。
这是我的.vimrc,我做错什么了吗?
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..发布于 2013-11-29 18:39:49
尝试将colorscheme调用移到文件的末尾。
另外,示例中的配色方案名称对我不起作用--它应该是colorscheme desert-warm-256。若要查看当前已安装的配色方案列表,请尝试交互式地输入:colorscheme <TAB>。
发布于 2014-06-10 15:49:31
我认为这个问题的答案是,在最初的海报的call vundle#end()或syntax on中没有.vimrc。
添加这两行,例如,colorscheme solarized行在call vundle#end()之后的任何位置都可以解决这个问题。
发布于 2014-03-28 21:22:14
colorscheme desert-warm必须紧跟在Bundle 'desert-warm-256'之后,因为是Bundle命令向路径添加了一些内容:
Bundle 'desert-warm-256'
colorscheme desert-warm资料来源:关于GitHub问题的同一个问题.
注意: Vundle最近(2014-03-18年)改用Plugin而不是Bundle,所以在您使用git pull之后:
Plugin 'desert-warm-256'
colorscheme desert-warmhttps://stackoverflow.com/questions/8452779
复制相似问题