|
|
@ -60,21 +60,26 @@ |
|
|
|
let data_dir = '$XDG_CONFIG_HOME/vim' |
|
|
|
let plug_dir = data_dir . '/plugged' |
|
|
|
if empty(glob(data_dir . '/autoload/plug.vim')) |
|
|
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' |
|
|
|
silent execute '!curl -fsSLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' |
|
|
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC |
|
|
|
endif |
|
|
|
|
|
|
|
" Load Plugins |
|
|
|
call plug#begin(plug_dir) |
|
|
|
Plug 'morhetz/gruvbox' |
|
|
|
Plug 'itchyny/lightline.vim' |
|
|
|
Plug 'preservim/nerdcommenter' |
|
|
|
Plug 'scrooloose/nerdtree' |
|
|
|
Plug 'vim-python/python-syntax' |
|
|
|
Plug 'godlygeek/tabular' |
|
|
|
Plug 'mzlogin/vim-markdown-toc' |
|
|
|
Plug 'tpope/vim-surround' |
|
|
|
call plug#end() |
|
|
|
silent! if plug#begin(plug_dir) |
|
|
|
Plug 'morhetz/gruvbox' |
|
|
|
Plug 'itchyny/lightline.vim' |
|
|
|
Plug 'preservim/nerdcommenter' |
|
|
|
Plug 'scrooloose/nerdtree' |
|
|
|
Plug 'vim-python/python-syntax' |
|
|
|
Plug 'godlygeek/tabular' |
|
|
|
Plug 'mzlogin/vim-markdown-toc' |
|
|
|
Plug 'tpope/vim-surround' |
|
|
|
|
|
|
|
" if v:version >= 703 |
|
|
|
" endif |
|
|
|
" |
|
|
|
call plug#end() |
|
|
|
endif |
|
|
|
|
|
|
|
" Plugin - lightline |
|
|
|
if isdirectory(expand(plug_dir . '/lightline.vim')) |
|
|
|