代码拉取完成,页面将自动刷新
"### not compatible vi ####
set nocompatible
"### Vundle begin ###
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'Lokaltog/vim-powerline'
Plugin 'scrooloose/nerdtree'
Plugin 'Yggdroot/indentLine'
Plugin 'altercation/vim-colors-solarized'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'Valloric/YouCompleteMe'
Plugin 'jiangmiao/auto-pairs'
call vundle#end()
"### base setting ###
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.插入括号时,短暂地跳转到匹配的对应括号
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned
set mouse=a " Enable mouse usage (all modes)
set nobackup
set number
set numberwidth=1
set cursorline
"set cursorcolumn
set ruler
set laststatus=2
set autochdir
set autoread
set ai
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=uft-8
set helplang=cn
set noswapfile
set title
set nofoldenable
set foldmethod=indent
set wildmenu
syntax enable
syntax on
au BufWrite * %s/\s\+$//ge
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
filetype on
filetype plugin on
filetype plugin indent on
"### keymap setting ###
let mapleader = ";"
nnoremap <F1> :NERDTreeToggle<CR>
nnoremap <F2> :set paste<CR>
nnoremap <F2><F2> :set paste!<CR>
nnoremap <F4> :bdelete<CR>
nnoremap <leader>bn :bn<CR>
nnoremap <leader>bp :bp<CR>
nnoremap <leader>evv :vsplit $MYVIMRC<cr>
nnoremap <leader>sv :source $MYVIMRC<cr>
"### UI setting ###
set background=dark
if !has('gui_running')
let g:solarized_termcolors=256
colorscheme solarized
else
colorscheme solarized
endif
if has('gui_running')
set guifont=Monaco:h12
endif
"### IndentLine setting###
let g:indentLine_enabled = 1
let g:indentLine_color_term = 239
"### Youcompleteme setting ###
"let g:ycm_global_ycm_extra_conf = '/Users/Air/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_global_ycm_extra_conf = '/Users/Air/.vim/bundle/YouCompleteMe/third_party/ycmd/examples/.ycm_extra_conf.py'
set completeopt-=preview
let g:ycm_min_num_of_chars_for_completion=1
let g:ycm_cache_omnifunc=0
let g:ycm_seed_identifiers_with_syntax=1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。