call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
Plug 'scrooloose/nerdcommenter'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
Plug 'fatih/vim-go', { 'tag': '*' }
" Plug 'maralla/completor.vim'
Plug 'Valloric/YouCompleteMe'
Plug 'mattn/emmet-vim'
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug '~/my-prototype-plugin'
call plug#end()
set nu " show line numbers
autocmd InsertLeave * se nocul " 用浅色高亮当前行
autocmd InsertEnter * se cul " 用浅色高亮当前行
" 设置返回键
set backspace=2
"aset cursorcolumn "or set cuc 设置光标所在的列
set cursorline "or set cul 设置光标所在的行
" cterm 表示原生vim设置央视, 设置为NONE表示可以自定义设置
" red(红),white(白),black(黑),green(绿),yellow(黄),blue(蓝),purple(紫), gray(灰),brown(棕),tan(褐色),syan(青色) 更多高亮颜色设置, 可以:h highlight 查看manual
highlight CursorLine cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
"highlight CursorColumn cterm=NONE ctermbg=blue ctermfg=white guibg=NONE guifg=NONE
" 自动缩进
set autoindent
set cindent
" Tab键的宽度
set tabstop=4
" 统一缩进为4
set softtabstop=4
set shiftwidth=4
filetype plugin on
let mapleader=","
" Run program
nnoremap <F5> <Esc>:w<CR>:!g++ -std=c++11 % -o /tmp/a.out ;and /tmp/a.out <CR>
" 设置NerdTree plugin
map <F3> :NERDTreeMirror<CR>
map <F3> :NERDTreeToggle<CR>
map <F4> :tabc<CR>
set cursorline
let g:NERDTreeIndicatorMapCustom = {
\ "Modified" : "✹",
\ "Staged" : "✚",
\ "Untracked" : "✭",
\ "Renamed" : "➜",
\ "Unmerged" : "═",
\ "Deleted" : "✖",
\ "Dirty" : "✗",
\ "Clean" : "✔︎",
\ "Unknown" : "?"
\ }
" 在终端启动vim时,共享NERDTree
let g:nerdtree_tabs_open_on_console_startup=1
let NERDTreeShowLineNumbers=1
let NERDTreeAutoCenter=1
set shell=bash
let NERDTreeShowBookmarks=1
set updatetime=200
网友评论