diff --git a/vim/vimrc b/vim/vimrc index f14cc4f..4af9608 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,11 +1,17 @@ -" pathogen -execute pathogen#infect() +" vim-plug installer +if empty(glob('~/.vim/autoload/plug.vim')) + silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + autocmd VimEnter * PlugInstall --sync | source $MYVIMRC +endif -" auto indent -filetype plugin indent on - -" enable syntax highlighting -syntax on +" vim-plug plugins +call plug#begin('~/.vim/vim-plug') +Plug 'valloric/youcompleteme' +Plug 'rhysd/vim-clang-format' +Plug 'vim-airline/vim-airline' +Plug 'ambv/black' +call plug#end() " tabwidth set tabstop=4 @@ -29,9 +35,3 @@ let g:airline#extensions#whitespace#mixed_indent_algo = 2 " themes colorscheme elflord -" gvim layout -set guioptions-=r -set guioptions-=L -set guioptions-=m -set guioptions-=T -