- 论坛徽章:
- 0
|
if exists("g:loaded_vimrc") && g:loaded_vimrc
finish
endif
let g:loaded_vimrc=1
set nocompatible
"language en
" charset detect list. ucs-bom must be earlier than ucs*.
"set fileencodings=ucs-bom,UTF-8,euc-jp,euc-kr,big5,cp936,latin1
set fileencodings=ucs-bom,UTF-8,cp936,latin1
set fileencoding=UTF-8
set encoding=UTF-8
set termencoding=UTF-8
set fileformats=unix,dos
set fileformat=unix
set nobackup "backupdir=~/.vimbak patchmode=.orig backupext=~
"set dictionary+=~/dict/dict.txt
set ruler showcmd wrap showmatch "list
set ttymouse=xterm2 nomousefocus mouse=
set formatoptions=cqrtmB numberwidth=4 nostartofline
set laststatus=1 whichwrap= tabstop=8 shiftwidth=8 softtabstop=8
set autoindent smartindent esckeys hidden wildmenu expandtab
set comments=s1:/*,mb:*,ex:*/,://,b:# syntax=on filetype=on incsearch
set viminfo=%,'50,\"50,:50 listchars=tab:>-,trail:.,extends:> history=80
set pastetoggle= shortmess+=I timeoutlen=750 nomore modelines=5
set backspace=indent,eol,start nodigraph "vb t_vb&
set nospell spelllang=en_us
if &term =~ "rxvt" || &term =~ "xterm"
set t_ti= t_te= " disable the screen switching
set title icon t_Co=16
endif
if &t_Co > 2 || &term =~ "screen"
syntax on
set hlsearch!
colorscheme torte
set completeopt=menu pumheight=12
highlight CursorLine guibg=#2B0000 ctermbg=darkgreen
highlight Pmenu guibg=#EE0000 ctermbg=darkred
highlight PmenuSel guibg=#660000 ctermbg=red guifg=yellow ctermfg=yellow
highlight PmenuSbar guibg=#990000 ctermbg=red
highlight PmenuThumb guifg=yellow ctermfg=darkred
endif
filetype plugin indent on
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"")
autocmd FileType xml,html setlocal matchpairs+=
autocmd FileType mail setlocal textwidth=78
" Key binding
"nmap gD dg$
nno :set hlsearch!set hlsearch?
nno :set number!set number?
nno :set spell!set spell?
"nno :set cursorline!set cursorline?
"nno :set cursorcolumn!set cursorcolumn?
ino gj
ino gk
nno gj
nno gk
iab i18n internationalization
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19290/showart_245575.html |
|