Commit graph

734 commits

Author SHA1 Message Date
Junegunn Choi 88e3147181
Renew issue template
Some checks failed
Test vim-plug / build (vim) (push) Has been cancelled
2026-05-22 22:40:23 +09:00
tiamat18 e216852799
Fix breakage to 'PlugUpgrade' under Windows PowerShell. (#1331)
Commit 09b7c0e has caused this command to emit an error during its
cleanup when run on Windows with 'shell' set to PowerShell.

The cause of the failure is that the cleanup logic passes the command
string 'rmdir /s /q' to `s:system()` (within `s:rm_rf()`). Before the
commit at fault, this command would be written to a batch file and
executed by 'cmd.exe'. After the commit, it is passed directly to
PowerShell for execution, where 'rmdir' is an alias for 'Remove-Item'
and does not support '/s' and '/q' flags.
2026-05-22 16:21:46 +09:00
tiamat18 d7db1b637c
Fix Support for PowerShell under Windows with VIM 8+ (#1326)
The following 'vim-plug' commands would fail and/or display errors
when executed by VIM 8+ on a Windows platform with the 'shell' option
set to 'powershell' or 'pwsh':
  - PlugInstall
  - PlugUpdate
  - PlugClean
  - PlugStatus
  - PlugDiff

There were two causes for these errors:
  - A bug in VIM itself (resolved by patch 9.2.6) with how compound
    PowerShell commands are handled by the 'system()' vimscript
    function.
  - A bug in the 's:vim8' branch of the private 'vim-plug' function
    's:spawn()' where the actual command to be executed was escaped
    for 'cmd.exe' but the 'cd' prefix added by 's:with_cd()" was escaped
    for PowerShell.
2026-05-17 10:51:31 +09:00
jgb 34467fc07d
Use job API for system() calls in GUI Vim to avoid overhead (#1325)
In GUI Vim (gvim, MacVim), each system() call incurs significant
overhead due to command prompt window creation, making operations
like PlugDiff ~5x slower than in terminal Vim or Neovim.

Add s:system_job() which uses job_start with file-based output to
run commands without that overhead, and use it in s:system() when
running in GUI Vim with job support.

Since v:shell_error is read-only in Vim 9, introduce s:shell_error
which is set by both code paths and used at all call sites.

Fixes #1312
2026-02-19 01:23:49 +09:00
Junegunn Choi d72ac8734f
Update README 2026-02-09 09:43:54 +09:00
Junegunn Choi 60dd7a5eaf
Update README 2026-02-02 09:41:17 +09:00
Evelyn Schneider 3f17a5cc3d
Fix PlugStatus reporting divergence when a tag is specified (#1321) 2025-11-06 13:41:49 +09:00
Junegunn Choi 904dac1530
Update README.md 2025-09-03 09:57:35 +09:00
Subhaditya Nath baa66bcf34
Allow command modifiers for on-demand-loading commands (#1110)
Before this commit, commands like this -
	:tab Git diff HEAD^ HEAD
were interpreted like this -
	:Git diff HEAD^ HEAD
This commit fixes that issue.
2025-03-29 14:17:01 +09:00
Junegunn Choi cdea0244a5
Add g:plug_disable_credential_helper (default: 1)
Some checks failed
Test vim-plug / build (vim) (push) Has been cancelled
This can be set to '0' not to disable git credential helper.

    let g:plug_disable_credential_helper = 0

See #1026
Close #1047
2025-03-13 00:18:41 +09:00
Junegunn Choi 9ef7739c81
Update README
Some checks failed
Test vim-plug / build (vim) (push) Has been cancelled
2025-02-27 14:01:38 +09:00
Eric Chen 7cadca537e
Update README.md (#1305)
Some checks failed
Test vim-plug / build (vim) (push) Has been cancelled
2025-02-09 09:19:56 +09:00
Junegunn Choi a7d4a73dd6
Update README
Some checks failed
Test vim-plug / build (vim) (push) Has been cancelled
2025-02-02 23:28:24 +09:00
Junegunn Choi d80f495fab
Allow pressing 'q' to abort the running tasks, then 'R' to retry (#1289)
Some checks failed
Test vim-plug / build (vim) (push) Has been cancelled
If you press 'q' while `PlugInstall` or `PlugUpdate` is in progress,
the current version of vim-plug immediately closes its window and aborts
all the running processes.

This commit enhances the 'q' map so that it doesn't close the window,
but instead displays the aborted tasks so that the user can press 'R' to
retry the tasks.

Fix #1285
2024-07-09 20:09:41 +09:00
Junegunn Choi d863d07832
Add more explanation on plug#end() 2024-06-19 20:05:15 +09:00
Junegunn Choi b98b66242b
Fix PlugClean when &shell is powershell on Windows (#1283) 2024-06-18 18:02:36 +09:00
Junegunn Choi db37a8a29a
Update comment in plug.vim 2024-06-01 15:58:29 +09:00
Junegunn Choi 7095372c4b
Add colorscheme example (should be loaded after plug#end()) 2024-06-01 15:40:24 +09:00
Junegunn Choi 3f1daea5bd
Adjust heading levels in README 2024-05-15 03:07:01 +09:00
Junegunn Choi 9b4ecd1bb5
Update documentation (#1280) 2024-05-14 19:06:23 +09:00
Junegunn Choi c0992146e2
Update README 2024-05-14 17:20:08 +09:00
Junegunn Choi 47ca942ea4
Update README 2024-05-14 16:57:04 +09:00
Junegunn Choi d977fa3786
Do not remove 'frozen' plugins on PlugClean
Close #1152
2024-03-31 00:53:55 +09:00
Junegunn Choi 24d7ac280f
Remove dead code
Close #1194
2024-03-29 13:02:03 +09:00
Junegunn Choi 2cd7bf673b
README: Fix typo 2024-03-15 23:16:01 +09:00
Junegunn Choi d54f8d5bbd
README: Use markdown alerts (#1276) 2024-03-15 21:22:16 +09:00
Junegunn Choi 61b6df67b4
Update examples 2024-03-14 19:11:37 +09:00
Junegunn Choi 94b7aa99a9
Update README and vimdoc 2024-03-07 23:41:50 +09:00
DanielApt 03a9bb6d84
Add reload/restart step to usage section (#1255)
Reloading the .vimrc should be part of the usage section, not the example section.
2024-03-07 23:31:28 +09:00
Junegunn Choi 854b081934
Open vim-plug window in a new tab (#1274)
* Open vim-plug window in a new tab not to disrupt the current window layout
* Open preview window on the right to better show the diff

If you prefer the old layout, use the following configuration:

    let g:plug_window = 'vertical topleft new'
    let g:plug_pwindow = 'above 12new'
2024-03-07 01:16:12 +09:00
R. N. West 3049761d47
Add dark mode vim-plug logo and use correct logo version in README (#1267) 2024-03-07 01:14:08 +09:00
Junegunn Choi ed19478ce2
Keep track of the default branch of the origin (#1272)
Fix #1005

vim-plug will now run `git remote set-head origin -a` on PlugUpdate to
keep track of the default branch of the origin, so that it can still
update a plugin even if its default branch has changed.

This additional command will slow down the update process, but this is
an unavoidable price to pay for the correctness of the task. However,
vim-plug will run checkout and merge commands in parallel, so this
improvement will slightly offset the slowdown.
2024-03-07 00:18:49 +09:00
Junegunn Choi e2974a3367
Fix PlugClean error when the default branch has changed (#1269)
Fix #1253
2024-03-05 16:13:23 +09:00
Junegunn Choi 2f8f04cf79 Reset &rtp before 'do' to invalidate Neovim cache of loaded Lua modules 2024-02-24 23:07:55 +09:00
Junegunn Choi 3264b81e7a Update plug.vim 2024-02-24 23:07:55 +09:00
Jongwook Choi 64b9f9e3c3 Source lua files (if any) from rtp when loading a plugin
Neovim 0.5.0 allows lua files to be used in runtime files (such as
plugin, ftdetect, etc.) as well as vimscript files. Indeed, some
plugins have `plugin/*.lua` scripts only, but not `plugin/*.vim`;
such plugins cannot be sourced and work properly if it is lazy-loaded.
2024-02-24 23:07:55 +09:00
Junegunn Choi 6154433e22
README: Lambda expression as post-update hook 2024-02-23 01:14:44 +09:00
Junegunn Choi eee20c7e79
Update README: warp.dev 2024-02-15 14:29:51 +09:00
Junegunn Choi ade078e362
Update README: warp.dev 2024-02-13 08:45:04 +09:00
Junegunn Choi 6dd068e8d8
Tidy up 2024-02-03 20:05:06 +09:00
Junegunn Choi e07c18608f
Add Lua configuration example
Close #1258
2024-02-03 20:02:13 +09:00
wsdjeg ca0ae0a8b1
Update builde status icon (#1238) 2023-04-01 23:59:21 +09:00
Alexis Corporal 034e844590
README: Change scrooloose/nerdtree to preservim/nerdtree (#1226)
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-01-19 11:35:13 +09:00
Junegunn Choi ddce935b16
Revert "Add Sponsor Labels action"
This reverts commit e531dbec2a.
2022-09-13 09:43:33 +09:00
Junegunn Choi e531dbec2a
Add Sponsor Labels action 2022-09-10 11:28:27 +09:00
Junegunn Choi b6739f358b
Update ISSUE_TEMPLATE: Require plug block contents 2022-09-06 11:06:26 +09:00
Eduardo Leggiero f308ef394e
Update username of NERDTree plugin (#1208) 2022-09-05 09:34:39 +09:00
Stefan Muenzel d94d234548
Add .gitignore (#1204) 2022-08-17 20:25:08 +09:00
Junegunn Choi d6cb65753f
Explicitly address the side-effects of plug#end() in the example
Close #1182
2022-08-01 09:17:35 +09:00
Junegunn Choi 87a160a1c3
Create FUNDING.yml 2022-07-30 19:54:42 +09:00