mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-20 02:56:10 -07:00
make autocmd work under Windows
parent
f0f027ff35
commit
00eccb73fc
4
faq.md
4
faq.md
@ -6,8 +6,8 @@ Place the following code in your .vimrc before `plug#begin()` call
|
|||||||
|
|
||||||
```vim
|
```vim
|
||||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
silent exe '!curl -kfLo ' . expand('~/.vim/autoload/plug.vim')
|
||||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
\ . '--create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
autocmd VimEnter * PlugInstall | source $MYVIMRC
|
autocmd VimEnter * PlugInstall | source $MYVIMRC
|
||||||
endif
|
endif
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user