Created
August 29, 2019 07:22
-
-
Save foolishflyfox/456ad2e720420718445c91a2b0d7ced0 to your computer and use it in GitHub Desktop.
vim 配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set filetype=python | |
"au BufNewFile,BufRead *.py,*.pyw setf python | |
autocmd FileType python set expandtab | |
set helplang=cn "中文帮助文档(前提是下了中文包) | |
syntax enable | |
syntax on " 自动语法高亮 | |
set number"显示行号 | |
colorscheme desert" 设定配色方案 | |
set guifont=Consolas:h12:cANSI"英文字体 | |
set guifontwide=SimSun-ExtB:h12:cGB2312 | |
set tabstop=4"表示Tab代表4个空格的宽度 | |
"set expandtab"表示Tab自动转换成空格 | |
set autoindent"表示换行后自动缩进 | |
set autoread " 当文件在外部被修改时,自动重新读取 | |
set history=400"vim记住的历史操作的数量,默认的是20 | |
set nocompatible"使用vim自己的键盘模式,而不是兼容vi的模式 | |
set confirm"处理未保存或者只读文件时,给出提示 | |
set smartindent"智能对齐 | |
set shiftwidth=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment