我安装了一个新的colorscheme。我将它添加到我的.vimrc
但是当我加载macvim时它没有加载。加载文件后,如果我键入:colorscheme sourcerer
,它会加载。我在这里缺少什么?
" General -----------------------
set nocompatible " Makes vim better
scriptencoding utf-8 " Setting everything to UTF-8
set encoding=utf-8
set history=256
set timeoutlen=250
set clipboard+=unnamed
let g:autotagTagsFile = ".git/tags"
set tags=.git/tags;$HOME/.tags
set nobackup
set nowritebackup
set directory=/tmp//
set noswapfile
set hlsearch
set ignorecase
set smartcase
set incsearch
let mapleader = ','
let maplocalleader = ' '
let g:netrw_banner = 0
" Formatting --------------------
set nowrap
set tabstop=4
set softtabstop=4
set shiftwidth=4
set backspace=indent
set backspace+=eol
set backspace+=start
set autoindent
set cindent
set indentkeys-=0#
set cinkeys-=0#
set cinoptions=:s,ps,ts,cs
set cinwords=if,else,while,do
set cinwords+=for,switch,case
" Visual ------------------------
syntax on
set showmatch
colorscheme sourcerer
if has('gui_running')
set guifont=InputMono:h14
if has('mac')
set noantialias
endif
endif
set novisualbell
set noerrorbells
set vb t_vb=
" Plugins ------------------------
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'xero/sourcerer.vim'
call vundle#end()
filetype plugin indent on
答案 0 :(得分:2)
您需要将包含colorscheme sourcerer
的行放在Vundle设置之下。好像应该给你一些相关的错误。使用您原来的.vimrc
我收到了消息:
Error detected while processing /home/xyz/.vimrc:
line 50:
E185: Cannot find color scheme 'sourcerer'No protocol specified
Press ENTER or type command to continue
但将colorscheme
行移到底部效果很好。