做一个vimrc的备份。

版权声明:本文为博主原创文章,转载请加入原文链接,谢谢。。 https://blog.csdn.net/shawncheer/article/details/87192543

这是基于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 <F5>   <Esc>:w<CR>:!g++ -std=c++11 % -o /tmp/a.out && /tmp/a.out<CR>
nnoremap <F7>   <Esc>:w<CR>:!g++ -std=c++11 %<CR>
nnoremap <C-F5> <Esc>:w<CR>:!g++ -std=c++11 -g % -o /tmp/a.out && gdb /tmp/a.out<CR>


" 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

猜你喜欢

转载自blog.csdn.net/shawncheer/article/details/87192543