Vim 风格设置
vimrc 配置详解
#-----------------------------------------------------------------------------------------------------
set history=5000 #命令行历史纪录 set hlsearch #高亮显示搜索结果 set nocompatible #不使用vi默认键盘布局 set number #显示行号 set autoindent #自动对齐 set smartindent #智能对齐 set showmatch #括号匹配模式 set ruler #显示状态行 set incsearch #查询时非常方便,如要查找book单词,当输入到/b时,会自动找到第一个b开头的单词 set tabstop=4 #tab键为4个空格 set cindent #C语言格式对齐 set nobackup #不要备份文件 set clipboard+=unnamed #与windows共享剪贴板 set expandtab #用space替代tab的输入 set noexpandtab 不用space替代tab的输入
#-----------------------------------------------------------------------------------------------------
Vim .vimrc #----------------------------------------------------------------------- set history=5000 set hlsearch set nocompatible set number set autoindent set smartindent set showmatch set ruler set incsearch set tabstop=4 set cindent set nobackup set clipboard+=unnamed set expandtab #-----------------------------------------------------------------------