Created
February 21, 2018 03:39
-
-
Save ZeekoZhu/8790757daf7c805c0a98adcd3e56b187 to your computer and use it in GitHub Desktop.
My 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
set cursorline | |
set cursorcolumn | |
highlight CursorColumn ctermbg=darkgrey | |
"显示行号 | |
set nu | |
"启动时隐去援助提示 | |
set shortmess=atI | |
"语法高亮 | |
syntax on | |
"不需要备份 | |
set nobackup | |
"没有保存或文件只读时弹出确认 | |
set confirm | |
"鼠标可用 | |
set mouse=a | |
"tab缩进 | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smarttab | |
"文件自动检测外部更改 | |
set autoread | |
"c文件自动缩进 | |
set cindent | |
"自动对齐 | |
set autoindent | |
"智能缩进 | |
set smartindent | |
"高亮查找匹配 | |
set hlsearch | |
"背景色 | |
set background=dark | |
"显示匹配 | |
set showmatch | |
"显示标尺,就是在右下角显示光标位置 | |
set ruler | |
"去除vi的一致性 | |
set nocompatible | |
"允许折叠 | |
set foldenable | |
"""""""""""""""""设置折叠""""""""""""""""""""" | |
"根据语法折叠 | |
set fdm=syntax | |
"手动折叠 | |
"set fdm=manual | |
"设置键盘映射,通过空格设置折叠 | |
nnoremap <space> @=((foldclosed(line('.')<0)?'zc':'zo'))<CR> | |
"""""""""""""""""""""""""""""""""""""""""""""" | |
"不要闪烁 | |
set novisualbell | |
"启动显示状态行 | |
set laststatus=2 | |
"浅色显示当前行 | |
autocmd InsertLeave * se nocul | |
"用浅色高亮当前行 | |
autocmd InsertEnter * se cul | |
"显示输入的命令 | |
set showcmd | |
"被分割窗口之间显示空白 | |
set fillchars=vert:/ | |
set fillchars=stl:/ | |
set fillchars=stlnc:/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment