Skip to content

Instantly share code, notes, and snippets.

@chenshengzhi
Last active February 17, 2016 03:56
Show Gist options
  • Save chenshengzhi/947e1ecff4c6e34c5d2f to your computer and use it in GitHub Desktop.
Save chenshengzhi/947e1ecff4c6e34c5d2f to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible
set enc=utf-8
set history=500
filetype plugin indent on
set autoindent
set smartindent
set wrap
set showmatch
set ruler
if has('mouse')
set mouse=a
endif
"设置语法高亮
syntax enable
syntax on
"高亮显示匹配的括号
set showmatch
"设置行号
set nu
"TAB宽4个空格
set ts=4
set tw=4
set expandtab
"自动tab
if has("autocmd")
filetype plugin indent on
endif
autocmd filetype python setlocal et sta sw=4 sts=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment