include autoload magic for plugins
This commit is contained in:
parent
0d08e2eb3e
commit
dc20353478
1 changed files with 5 additions and 0 deletions
5
.vimrc
5
.vimrc
|
@ -44,6 +44,11 @@ autocmd FileType gemtext setlocal spell spelllang=en_us cc= wrap
|
|||
set listchars=tab:▸\ ,eol:¬,space:.
|
||||
|
||||
" vim-plug, https://github.com/junegunn/vim-plug
|
||||
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
||||
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'
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
call plug#begin()
|
||||
Plug 'https://github.com/fatih/vim-go'
|
||||
Plug 'https://github.com/peterhoeg/vim-qml'
|
||||
|
|
Loading…
Reference in a new issue