嗨,我一直在尝试在ubuntu上配置vim。
所有的软件包似乎都安装良好。但是,如果通过vundle安装colorscheme,然后使用colorscheme名称,则找不到该方案。
我曾尝试安装日光浴和沙漠温暖的铁路,但都未能加载。
这是我的.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..
最佳答案
尝试将colorscheme
调用移至文件末尾。
另外,您示例中的配色方案名称对我不起作用-应该为colorscheme desert-warm-256
。要查看当前安装的配色方案列表,请尝试以交互方式输入:colorscheme <TAB>
。
关于vim - Vim Vundle Colorschemes-Vimrc,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8452779/