Skip to content

Commit 61b6df6

Browse files
committedMar 14, 2024··
Update examples
1 parent 94b7aa9 commit 61b6df6

File tree

2 files changed

+85
-61
lines changed

2 files changed

+85
-61
lines changed
 

‎README.md

+42-30
Original file line numberDiff line numberDiff line change
@@ -133,31 +133,36 @@ call plug#begin()
133133
134134
" Make sure you use single quotes
135135
136-
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
136+
" Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
137137
Plug 'junegunn/vim-easy-align'
138138
139139
" Any valid git URL is allowed
140-
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
141-
142-
" Multiple Plug commands can be written in a single line using | separators
143-
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
144-
145-
" On-demand loading
146-
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
147-
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
148-
149-
" Using a non-default branch
150-
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
140+
Plug 'https://github.com/junegunn/seoul256.vim.git'
151141
152142
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
153143
Plug 'fatih/vim-go', { 'tag': '*' }
154144
155-
" Plugin options
156-
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
145+
" Using a non-default branch
146+
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
147+
148+
" Use 'dir' option to install plugin in a non-default directory
149+
Plug 'junegunn/fzf', { 'dir': '~/.fzf' }
157150
158-
" Plugin outside ~/.vim/plugged with post-update hook
151+
" Post-update hook: run a shell command after installing or updating the plugin
159152
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
160153
154+
" Post-update hook can be a lambda expression
155+
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
156+
157+
" If the vim plugin is in a subdirectory, use 'rtp' option to specify its path
158+
Plug 'nsf/gocode', { 'rtp': 'vim' }
159+
160+
" On-demand loading: loaded when the specified command is executed
161+
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
162+
163+
" On-demand loading: loaded when a file with a specific file type is opened
164+
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
165+
161166
" Unmanaged plugin (manually installed and updated)
162167
Plug '~/my-prototype-plugin'
163168
@@ -181,31 +186,38 @@ local Plug = vim.fn['plug#']
181186

182187
vim.call('plug#begin')
183188

184-
-- Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
189+
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
185190
Plug('junegunn/vim-easy-align')
186191

187192
-- Any valid git URL is allowed
188-
Plug('https://github.com/junegunn/vim-github-dashboard.git')
189-
190-
-- Multiple Plug commands can be written in a single line using ; separators
191-
Plug('SirVer/ultisnips'); Plug('honza/vim-snippets')
192-
193-
-- On-demand loading
194-
Plug('preservim/nerdtree', { ['on'] = 'NERDTreeToggle' })
195-
Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
196-
197-
-- Using a non-default branch
198-
Plug('rdnetto/YCM-Generator', { ['branch'] = 'stable' })
193+
Plug('https://github.com/junegunn/seoul256.vim.git')
199194

200195
-- Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
201196
Plug('fatih/vim-go', { ['tag'] = '*' })
202197

203-
-- Plugin options
204-
Plug('nsf/gocode', { ['tag'] = 'v.20150303', ['rtp'] = 'vim' })
198+
-- Using a non-default branch
199+
Plug('neoclide/coc.nvim', { ['branch'] = 'release' })
200+
201+
-- Use 'dir' option to install plugin in a non-default directory
202+
Plug('junegunn/fzf', { ['dir'] = '~/.fzf' })
205203

206-
-- Plugin outside ~/.vim/plugged with post-update hook
204+
-- Post-update hook: run a shell command after installing or updating the plugin
207205
Plug('junegunn/fzf', { ['dir'] = '~/.fzf', ['do'] = './install --all' })
208206

207+
-- Post-update hook can be a lambda expression
208+
Plug('junegunn/fzf', { ['do'] = function()
209+
vim.fn['fzf#install']()
210+
end })
211+
212+
-- If the vim plugin is in a subdirectory, use 'rtp' option to specify its path
213+
Plug('nsf/gocode', { ['rtp'] = 'vim' })
214+
215+
-- On-demand loading: loaded when the specified command is executed
216+
Plug('preservim/nerdtree', { ['on'] = 'NERDTreeToggle' })
217+
218+
-- On-demand loading: loaded when a file with a specific file type is opened
219+
Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
220+
209221
-- Unmanaged plugin (manually installed and updated)
210222
Plug('~/my-prototype-plugin')
211223

‎doc/plug.txt

+43-31
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
plug.txt plug Last change: March 7 2024
1+
plug.txt plug Last change: March 14 2024
22
PLUG - TABLE OF CONTENTS *plug* *plug-toc*
33
==============================================================================
44

@@ -69,31 +69,36 @@ Example~
6969
7070
" Make sure you use single quotes
7171
72-
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
72+
" Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
7373
Plug 'junegunn/vim-easy-align'
7474
7575
" Any valid git URL is allowed
76-
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
77-
78-
" Multiple Plug commands can be written in a single line using | separators
79-
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
80-
81-
" On-demand loading
82-
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
83-
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
84-
85-
" Using a non-default branch
86-
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
76+
Plug 'https://github.com/junegunn/seoul256.vim.git'
8777
8878
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
8979
Plug 'fatih/vim-go', { 'tag': '*' }
9080
91-
" Plugin options
92-
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
81+
" Using a non-default branch
82+
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
83+
84+
" Use 'dir' option to install plugin in a non-default directory
85+
Plug 'junegunn/fzf', { 'dir': '~/.fzf' }
9386
94-
" Plugin outside ~/.vim/plugged with post-update hook
87+
" Post-update hook: run a shell command after installing or updating the plugin
9588
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
9689
90+
" Post-update hook can be a lambda expression
91+
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
92+
93+
" If the vim plugin is in a subdirectory, use 'rtp' option to specify its path
94+
Plug 'nsf/gocode', { 'rtp': 'vim' }
95+
96+
" On-demand loading: loaded when the specified command is executed
97+
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
98+
99+
" On-demand loading: loaded when a file with a specific file type is opened
100+
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
101+
97102
" Unmanaged plugin (manually installed and updated)
98103
Plug '~/my-prototype-plugin'
99104
@@ -117,31 +122,38 @@ example above.
117122
118123
vim.call('plug#begin')
119124
120-
-- Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
125+
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
121126
Plug('junegunn/vim-easy-align')
122127
123128
-- Any valid git URL is allowed
124-
Plug('https://github.com/junegunn/vim-github-dashboard.git')
125-
126-
-- Multiple Plug commands can be written in a single line using ; separators
127-
Plug('SirVer/ultisnips'); Plug('honza/vim-snippets')
128-
129-
-- On-demand loading
130-
Plug('preservim/nerdtree', { ['on'] = 'NERDTreeToggle' })
131-
Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
132-
133-
-- Using a non-default branch
134-
Plug('rdnetto/YCM-Generator', { ['branch'] = 'stable' })
129+
Plug('https://github.com/junegunn/seoul256.vim.git')
135130
136131
-- Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
137132
Plug('fatih/vim-go', { ['tag'] = '*' })
138133
139-
-- Plugin options
140-
Plug('nsf/gocode', { ['tag'] = 'v.20150303', ['rtp'] = 'vim' })
134+
-- Using a non-default branch
135+
Plug('neoclide/coc.nvim', { ['branch'] = 'release' })
136+
137+
-- Use 'dir' option to install plugin in a non-default directory
138+
Plug('junegunn/fzf', { ['dir'] = '~/.fzf' })
141139
142-
-- Plugin outside ~/.vim/plugged with post-update hook
140+
-- Post-update hook: run a shell command after installing or updating the plugin
143141
Plug('junegunn/fzf', { ['dir'] = '~/.fzf', ['do'] = './install --all' })
144142
143+
-- Post-update hook can be a lambda expression
144+
Plug('junegunn/fzf', { ['do'] = function()
145+
vim.fn['fzf#install']()
146+
end })
147+
148+
-- If the vim plugin is in a subdirectory, use 'rtp' option to specify its path
149+
Plug('nsf/gocode', { ['rtp'] = 'vim' })
150+
151+
-- On-demand loading: loaded when the specified command is executed
152+
Plug('preservim/nerdtree', { ['on'] = 'NERDTreeToggle' })
153+
154+
-- On-demand loading: loaded when a file with a specific file type is opened
155+
Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
156+
145157
-- Unmanaged plugin (manually installed and updated)
146158
Plug('~/my-prototype-plugin')
147159

0 commit comments

Comments
 (0)
Please sign in to comment.