Created
June 25, 2018 02:21
-
-
Save lan2720/b8d700d18b7ca2634115e00e014ca7f8 to your computer and use it in GitHub Desktop.
This file contains 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 fileencodings=utf-8 | |
set termencoding=utf-8 | |
set encoding=utf-8 | |
" 开启语法高亮 | |
syntax enable | |
" 开启语法高亮 | |
syntax on | |
" 检测文件类型 | |
filetype on | |
" 针对不同的文件,采用不同的缩进方式 | |
filetype indent on | |
" 启动自动补全 | |
filetype plugin indent on | |
" 显示当前行号和列号 | |
set ruler | |
" 高亮行 | |
set cursorline | |
" 显示行号 | |
set number | |
" 设置代码匹配,包括括号匹配情况 | |
set showmatch | |
" 设置tab宽度 | |
set tabstop=4 | |
" 设置自动对齐空格数 | |
set shiftwidth=4 | |
" 按退格键时可以一次删除4个空格 | |
set softtabstop=4 | |
" 编辑的时候将所有的tab设置为空格(expandtab) | |
set expandtab | |
" 使用Backspace直接删除tab | |
set smarttab | |
" 自动缩进 | |
set autoindent | |
" 显示tab和空白符 | |
" set list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment