Add tip for running vim-plug on the command line. Close #948.

Jan Edmund Lazo 2020-03-24 22:35:20 -04:00
parent 790042dd43
commit acb55572de

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