Vim杂记:Sublime的配色方案

一、前言                                    

  爱美之心人皆有之,sublime的配色实在好看,于是希望Vim也能这样。

 

二、配置                                    

 1.下载monokai(https://github.com/sickill/vim-monokai),然后将Monokai.vim保存到~/.vim/colors下;

 2.配置~/.vimrc文件,添加 syntax enable 、 colorscheme Monokai 两行。我的~/.vimrc文件如下

set encoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese,cp936
set guifont=Consolas:h15
language messages zh_CN.utf-8
set lines=45 columns=100
set number
set autoindent
set smartindent
set tabstop=4
set autochdir

set shiftwidth=4
set foldmethod=manual

syntax enable colorscheme Monokai
set nocompatible set nobackup

 

三、参考                        

http://calefy.org/2012/10/30/the-config-of-my-vim.html

posted @ 2014-08-14 07:17  ^_^肥仔John  阅读(9976)  评论(0编辑  收藏  举报