Skip to content

Instantly share code, notes, and snippets.

@SimoneCheng
Created April 28, 2022 03:54
Show Gist options
  • Save SimoneCheng/268a11480d81555be775dcef3068cf71 to your computer and use it in GitHub Desktop.
Save SimoneCheng/268a11480d81555be775dcef3068cf71 to your computer and use it in GitHub Desktop.
my .vimrc
syn on "语法支持
set laststatus=2 "始终显示状态栏
set tabstop=2 "一个制表符的长度
set softtabstop=2 "一个制表符的长度(可以大于tabstop)
set shiftwidth=2 "一个缩进的长度
set expandtab "使用空格替代制表符
set smarttab "智能制表符
set autoindent "自动缩进
set smartindent "只能缩进
set number "显示行号
set ruler "显示位置指示器
set backupdir=/tmp "设置备份文件目录
set directory=/tmp "设置临时文件目录
set ignorecase "检索时忽略大小写
set hls "检索时高亮显示匹配项
set helplang=cn "帮助系统设置为中文
set cursorline
set cursorcolumn
hi CursorLine cterm=none ctermbg=239 ctermfg=none
hi CursorColumn cterm=none ctermbg=239 ctermfg=none
hi LineNr cterm=none ctermbg=248 ctermfg=black
hi CursorLineNr term=bold cterm=bold ctermbg=012 ctermfg=none
" Use new regular expression engine
set re=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment