Updated tutorial (markdown)

Junegunn Choi 2024-05-14 18:59:40 +09:00
parent f729baf168
commit 5527b87f38

@ -38,14 +38,14 @@ Installing plugins
With vim-plug, you declare the list of plugins you want to use in your
Vim configuration file. It's `~/.vimrc` for ordinary Vim, and
`~/.config/nvim/init.vim` for Neovim. The list should start with
`call plug#begin(PLUGIN_DIRECTORY)` and end with `call plug#end()`.
`call plug#begin([PLUGIN_DIRECTORY])` and end with `call plug#end()`.
`PLUGIN_DIRECTORY` is a placeholder for vim-plug's plugin directory.
Please do not set it to a directory from `runtimepath` option.
Do NOT set it to the `autoload/` directory where `plug.vim` is.
```vim
" Plugins will be downloaded under the specified directory.
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
" Plugin directory is optional
call plug#begin()
" Declare the list of plugins.
Plug 'tpope/vim-sensible'