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

切到自己目錄cd ~

編輯vi .vimrc文件,加入下面的文字

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--*****************************

點擊保存

修改SecureCRT的會話選項

 

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