mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-24 13:07:36 -07:00
Add tip for running vim-plug on the command line. Close #948.
parent
790042dd43
commit
acb55572de
16
tips.md
16
tips.md
@ -14,7 +14,21 @@ endif
|
|||||||
|
|
||||||
Note that `--sync` flag is used to block the execution until the installer finishes.
|
Note that `--sync` flag is used to block the execution until the installer finishes.
|
||||||
|
|
||||||
(If you're behind an HTTP proxy, you may need to add `--insecure` option to the curl command. In that case, you also need to set `$GIT_SSL_NO_VERIFY` to true.)
|
(If you're behind an HTTP proxy, you may need to add `--insecure` option to the curl command. In
|
||||||
|
that case, you also need to set `$GIT_SSL_NO_VERIFY` to true.)
|
||||||
|
|
||||||
|
### Install plugins on the command line
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# vim
|
||||||
|
vim -es -u vimrc -i NONE -c "PlugInstall" -c "qa"
|
||||||
|
|
||||||
|
# neovim
|
||||||
|
nvim -es -u init.vim -i NONE -c "PlugInstall" -c "qa"
|
||||||
|
```
|
||||||
|
|
||||||
|
`-u` is used here to force (n)vim to read only the given vimrc. See `:h startup`.
|
||||||
|
`-i` is used here to skip `viminfo` (vim) or `shada` (nvim). Reduce the `runtimepath` via `--cmd` to speed up vim-plug. Add `-V` to debug vim-plug if there are errors.
|
||||||
|
|
||||||
### Migrating from other plugin managers
|
### Migrating from other plugin managers
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user