---
title: "vimrc备份"
author: "digiter"
date: "2011-12-03T14:06:12Z"
tags: []
categories: ["开源软件"]
slug: "vimrc"
draft: false
lastmod: "2011-12-03T14:06:12Z"
id: 1290517
url: "https://digiter.iteye.com/blog/1290517"
---

```java

  1 " vimrc by digiter@126.com
  2 
  3 " General
  4 set encoding=UTF8
  5 set fileencodings=UTF8,GBK   " text encoding
  6 set nocompatible             " not compatible vith vi
  7 set autoread                 " auto load file modified outside
  8 filetype plugin indent on    " indent configure depend on filetype
  9 syntax on                    " highlight syntax
 10 color desert
 11 
 12 " search and match
 13 set incsearch    " increasing search
 14 
 15 " text formatting
 16 set nowrap       " no wrap lines
 17 set number       " show line numbers
 18 set shiftwidth=4 tabstop=4 softtabstop=4
 19 autocmd FileType c,cpp set noexpandtab
 20 autocmd FileType py    set expandtab
 21 


```