嗨,我一直在尝试在ubuntu上配置vim.
所有的软件包似乎安装得很好.但是,如果通过vundle安装colorscheme然后使用colorscheme名称,它似乎找不到该方案.
我试图安装railscast,solarized和desert-warm,但都没有加载.
这是我的.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..
Run Code Online (Sandbox Code Playgroud)
小智 12
尝试将colorscheme
呼叫移至文件末尾.
此外,您的示例中的颜色方案名称对我来说不起作用 - 它应该是colorscheme desert-warm-256
.要查看当前安装的颜色方案列表,请尝试以:colorscheme <TAB>
交互方式输入.
我认为这个问题的答案是 原始海报的.vimrc中没有call vundle#end()
或没有syntax on
.
添加这两行,例如colorscheme solarized
在行之后的任何地方call vundle#end()
都可以解决问题.