" 开启语法高亮 syntax enable if has("syntax") syntax on endif
set nocompatible " Use vim defaults set viminfo='20,\"50 " read/write a .viminfo file, don't store more than 50 lines of registers set history=50 " store 50 lines of command line history set nobackup " 不进行备份
" 缩进与对齐 set backspace=indent,eol,start set autoindent " 自动对齐 set cindent " 设置C/C++自动对齐 set cinoptions=g-1 " 设置C/C++语言的缩进方式 set smartindent " 智能对齐 set tabstop=4 " 设置制表符(tab)的宽度 set softtabstop=4 " 设置软制表符的宽度 set shiftwidth=4 " 自动缩进使用4个空格
" 设置行号 set number
" 搜索高亮 set incsearch set hlsearch
" 设置搜索时忽略大小写 " set ignorecase
" 检测文件类型 filetype on
" 允许插件 filetype plugin indent on
" 允许使用鼠标 " set mouse=a
" 状态栏设置 set laststatus=2 set ruler " display current row and column position
" 命令行设置 set showcmd " display incomplete commands set showmode " display vim mode