|
1 | 1 | " vim-plug: Vim plugin manager
|
2 | 2 | " ============================
|
3 | 3 | "
|
4 |
| -" Download plug.vim and put it in ~/.vim/autoload |
| 4 | +" 1. Download plug.vim and put it in 'autoload' directory |
5 | 5 | "
|
| 6 | +" # Vim |
6 | 7 | " curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
7 | 8 | " https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
8 | 9 | "
|
9 |
| -" Edit your .vimrc |
| 10 | +" # Neovim |
| 11 | +" sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ |
| 12 | +" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' |
10 | 13 | "
|
11 |
| -" call plug#begin('~/.vim/plugged') |
| 14 | +" 2. Add a vim-plug section to your ~/.vimrc (or ~/.config/nvim/init.vim for Neovim) |
12 | 15 | "
|
13 |
| -" " Make sure you use single quotes |
| 16 | +" call plug#begin() |
14 | 17 | "
|
15 |
| -" " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align |
16 |
| -" Plug 'junegunn/vim-easy-align' |
| 18 | +" " List your plugins here |
| 19 | +" Plug 'tpope/vim-sensible' |
17 | 20 | "
|
18 |
| -" " Any valid git URL is allowed |
19 |
| -" Plug 'https://github.com/junegunn/vim-github-dashboard.git' |
20 |
| -" |
21 |
| -" " Multiple Plug commands can be written in a single line using | separators |
22 |
| -" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' |
23 |
| -" |
24 |
| -" " On-demand loading |
25 |
| -" Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' } |
26 |
| -" Plug 'tpope/vim-fireplace', { 'for': 'clojure' } |
27 |
| -" |
28 |
| -" " Using a non-default branch |
29 |
| -" Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } |
30 |
| -" |
31 |
| -" " Using a tagged release; wildcard allowed (requires git 1.9.2 or above) |
32 |
| -" Plug 'fatih/vim-go', { 'tag': '*' } |
33 |
| -" |
34 |
| -" " Plugin options |
35 |
| -" Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } |
36 |
| -" |
37 |
| -" " Plugin outside ~/.vim/plugged with post-update hook |
38 |
| -" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } |
39 |
| -" |
40 |
| -" " Unmanaged plugin (manually installed and updated) |
41 |
| -" Plug '~/my-prototype-plugin' |
42 |
| -" |
43 |
| -" " Initialize plugin system |
44 | 21 | " call plug#end()
|
45 | 22 | "
|
46 |
| -" Then reload .vimrc and :PlugInstall to install plugins. |
47 |
| -" |
48 |
| -" Plug options: |
| 23 | +" 3. Reload the file or restart Vim, then you can, |
49 | 24 | "
|
50 |
| -"| Option | Description | |
51 |
| -"| ----------------------- | ------------------------------------------------ | |
52 |
| -"| `branch`/`tag`/`commit` | Branch/tag/commit of the repository to use | |
53 |
| -"| `rtp` | Subdirectory that contains Vim plugin | |
54 |
| -"| `dir` | Custom directory for the plugin | |
55 |
| -"| `as` | Use different name for the plugin | |
56 |
| -"| `do` | Post-update hook (string or funcref) | |
57 |
| -"| `on` | On-demand loading: Commands or `<Plug>`-mappings | |
58 |
| -"| `for` | On-demand loading: File types | |
59 |
| -"| `frozen` | Do not update unless explicitly specified | |
| 25 | +" :PlugInstall to install plugins |
| 26 | +" :PlugUpdate to update plugins |
| 27 | +" :PlugDiff to review the changes from the last update |
| 28 | +" :PlugClean to remove plugins no longer in the list |
60 | 29 | "
|
61 |
| -" More information: https://github.com/junegunn/vim-plug |
| 30 | +" For more information, see https://github.com/junegunn/vim-plug |
62 | 31 | "
|
63 | 32 | "
|
64 |
| -" Copyright (c) 2017 Junegunn Choi |
| 33 | +" Copyright (c) 2024 Junegunn Choi |
65 | 34 | "
|
66 | 35 | " MIT License
|
67 | 36 | "
|
|
0 commit comments