-
-
Save GivenCui/30aa0c065ceecbd3c7c8ded317ce81db to your computer and use it in GitHub Desktop.
vim配置文件
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
" 自动代码高亮 | |
syntax on | |
" 显示行号 | |
set nu | |
" 显示执行命令 | |
set showcmd | |
set encoding=utf-8 | |
" 设置tab4个空格 | |
set tabstop=4 | |
set expandtab | |
"程序自动缩进时候空格数 | |
set shiftwidth=4 | |
"退格键一次删除4个空格 | |
set softtabstop=4 | |
" 在编辑过程中,在右下角显示光标位置的状态行 | |
set ruler | |
" 设置主题色 | |
colorscheme desert | |
" 搜索忽略大小写 | |
set ignorecase | |
" 自动对齐 | |
set autoindent | |
" 依据上面的对齐格式, 智能选择对齐方式 | |
set smartindent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vimrc
所在路径全局:
/etc/vimrc
,用户:~/.vimrc