mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Consistency
parent
0f9aac4253
commit
81d52eff1e
6
tips.md
6
tips.md
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
### Automatic installation
|
### Automatic installation
|
||||||
|
|
||||||
Place the following code in your .vimrc before `plug#begin()` call
|
_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'))
|
||||||
@ -24,9 +24,9 @@ Resort to this only if git cannot get updated certificates or if Github has TLS/
|
|||||||
|
|
||||||
You can even go a step further and make `:PlugInstall` run on startup if there are any missing plugins.
|
You can even go a step further and make `:PlugInstall` run on startup if there are any missing plugins.
|
||||||
|
|
||||||
```vim
|
_Place the following code in your .vimrc before `plug#begin()` call_
|
||||||
" Put this code before Plug block (plug#begin ~ plug#end)
|
|
||||||
|
|
||||||
|
```vim
|
||||||
" Install vim-plug if not found
|
" Install vim-plug if not found
|
||||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||||
|
Loading…
Reference in New Issue
Block a user