""""""""""""""""""""""VUNDLE PLUGIN""""""""""""""""""""
" 不兼容vi set nocompatible
" 不检测文件类型 filetype off
" set the runtime path to include Vundle and initialize set rtp+=$HOME/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe' " The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo call vundle#end()
" 针对不同的文件类型采用不同的缩进格式 filetype plugin indent on
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append !
to update or just
" :PluginUpdate
" :PluginSearch foo - searches for foo; append !
to refresh local cache
" :PluginClean - confirms removal of unused plugins; append !
to
" auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
""""""""""""""""""""""BASE CONFIG"""""""""""""""""""""""
" 取消备份 set nobackup set noswapfile set noundofile
" 解决consle输出乱码 language messages zh_CN.utf-8
" 状态栏配置 set laststatus=2
" 打开语法高亮 syntax enable
" 开启语法检测 syntax on
" vimrc文件修改之后自动加载 autocmd! bufwritepost .vimrc source %
" 文件修改之后自动载入 set autoread
" yy直接复制到系统剪切板(For macvim) "set clipboard=unnamed
" 高亮搜索命中的文本 set hlsearch
" 随着键入即时搜索 set incsearch
" 搜索时忽略大小写 set ignorecase
" 有一个或以上大写字母时仍大小写敏感 set smartcase
set guifont=Menlo:h14
" 使用自带配色 "colorscheme elflord "set background=dark
" 在状态栏显示正在输入的命令 set showcmd
" 显示括号配对情况 set showmatch
" :next, :make 命令之前自动保存 set autowrite
" 允许使用鼠标 set mouse=a
" 设置行号 set nu
" 退格键可用 set backspace=2
" 退格键一次删掉4个空格 set smarttab
" 缩进 set autoindent set smartindent