做一个vimrc的备份。

这是基于vim自带的轻量级插件管理器,可以取代bundle的插件管理。这个配置如下:

set nocompatible
syntax on
set cursorline
set number
"set relativenumber
set wrap
set ruler
set incsearch
set showcmd
set showmatch
set tabstop=4 "setup 4 spaces for a tab key.
set shiftwidth=4 "Indent size .



autocmd vimenter * NERDTree

nnoremap    :w:!g++ -std=c++11 % -o /tmp/a.out && /tmp/a.out
nnoremap    :w:!g++ -std=c++11 %
nnoremap  :w:!g++ -std=c++11 -g % -o /tmp/a.out && gdb /tmp/a.out


" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')

" Declare the list of plugins.
Plug 'Valloric/YouCompleteMe'
Plug 'tpope/vim-sensible'
Plug 'junegunn/seoul256.vim'
Plug 'vim-airline/vim-airline'
Plug 'junegunn/vim-easy-align'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'junegunn/vim-github-dashboard', { 'on': ['GHDashboard', 'GHActivity'] }
Plug 'junegunn/goyo.vim', { 'for': 'markdown' }
Plug 'ludovicchabant/vim-gutentags'
Plug 'Raimondi/delimitMate'
Plug 'Chiel92/vim-autoformat'
" List ends here. Plugins become visible to Vim after this call.
call plug#end()

然后vim打开人员文件,使用下面命令进行安装。

:PlugInstall

 

你可能感兴趣的:(技术宅)