配置屬於自己的vi配色方案吧

先切換到自己的用戶目錄,打開.vimrc文件(如果你之前沒打開過,那應該是個空文件):

cd ~

vi .vimrc

按Ctrl+Shift+V將以下代碼粘貼進去:

scriptencoding utf-8

set encoding=utf-8

let $LANG="zh_CN.UTF-8"

set termencoding=utf-8

set fileencoding=utf-8

colo darkblue

set nocompatible

set hlsearch

set history=1000

set mousemodel=popup

set sm

set cin

set mouse=n

set selection=exclusive

set selectmode=mouse,key

set ruler

set wildmenu

set backspace=2

set whichwrap+=<,>,h,l

syntax on

set ts=4

set softtabstop=4

set shiftwidth=4

set noexpandtab

set nu

filetype on

filetype plugin on

filetype indent on

set ambiwidth=double

set showmatch

set smarttab

set autoindent

set formatoptions=tcrqn

set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%l/%L%)\"設置狀態欄

let Tlist_Show_One_File=1

let Tlist_Exit_OnlyWindow=1

let g:ctrlp_working_path_mode = ''

set listchars=tab:>\ ,

set list

vmap bl :<C-U>!svn blame <C-R>=expand("%:p") <CR> \| sed -n <C-R>=line("'<") <CR>,<C-R>=line("'>") <CR>p <CR>

"map <F9> ggO<Esc>xxa--***************************** <CR><Esc>xxa-- Created by Eric on:<Esc>:read !date <CR>kJ$a<CR><Esc>xxa--<CR><Esc>xxa-- @desc:<CR><Esc>xxa--<CR><Esc>xxa-- @history<CR><Esc>xxa--*****************************

保存退出,再重新進來,可以發現我們的配色方案已經生效了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章