免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 875 | 回复: 0
打印 上一主题 下一主题

收藏vimrc配置文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-10 03:05 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP