" 基本配置 " set nocompatible syntax on set showmode set showcmd set t_Co = 256
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 set langmenu=zh_CN.UTF-8 if version >= 603 set helplang=cn endif
set mouse = a set selection = exclusive set selectmode = mouse, key
filetype plugin on filetype indent on
" 搜索相关 " set showmatch set hlsearch set ignorecase set incsearch set smartcase
" 编辑相关 " set spell spelllang=en_us set nobackup set noswapfile set undofile set paste set autochdir set visualbell set noerrorbells set history = 1000 set listchars=tab:»■,trail:■ set list set wildmenu set wildmode=longest:list,full
" 外观相关 " set number set relativenumber set guifont = Courier_New:h10:cANSI set cursorline set cursorcolumn set textwidth = 80 set wrap set linebreak set wrapmargin = 2 set scrolloff = 5 " set sidescrolloff = 15 " 水平滚动时,光标距离行首或行尾的位置(单位:字符)。该配置在不折行时比较有用 set laststatus = 2 set ruler
" 缩进相关 " set autoindent set tabstop = 4 set shiftwidth = 4 set expandtab set softtabstop = 4
"让vimrc配置变更立即生效" autocmd BufWritePost $MYVIMRC source $MYVIMRC
|