100 Commits
Author SHA1 Message Date
Junegunn ChoiandGitHub d80f495fab Allow pressing 'q' to abort the running tasks, then 'R' to retry (#1289)
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 ChoiandGitHub 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 ChoiandGitHub 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
Junegunn ChoiandGitHub 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
Junegunn ChoiandGitHub 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 ChoiandGitHub 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
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
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
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 ChoiandGitHub 87a160a1c3 Create FUNDING.yml 2022-07-30 19:54:42 +09:00
Junegunn Choi 8fdabfba0b PlugDiff: Press enter on the name of a plugin to see the full diff
Close #1174
2022-05-03 23:10:00 +09:00
Junegunn Choi 93ab590978 Include plugins with 'commit' values in PlugSnapshot output
Fix #1167
2022-04-04 11:52:45 +09:00
Junegunn Choi e300178a0e Change the default plugin directory for Neovim
And suggest users to call plug#begin() without an argument to avoid
confusion.
2022-01-03 23:05:08 +09:00
Junegunn Choi 93a115718f Migrate to GitHub Actions
Close #1128

TODO:
- Neovim stale/unstable
  - https://github.com/junegunn/vim-plug/runs/4422576984?check_suite_focus=true#step:3:238
- Vim 7.4
  - Ruby parallel installer
  - Python parallel installer
2021-12-05 23:42:23 +09:00
Junegunn Choi 2f4e28161e Set empty credential.helper only when git 2.0 or above is available
Fix #1031
2020-11-03 22:55:17 +09:00
Junegunn Choi d16273e072 Code cleanup 2020-09-08 22:39:56 +09:00
Junegunn Choi 4a3e85e878 Test Neovim on Bionic
https://github.com/neovim/neovim/pull/12802
2020-09-08 17:27:20 +09:00
Junegunn Choi a9bf5bd722 "non-master branch" -> "non-default branch" 2020-08-30 02:05:50 +09:00
Junegunn Choi e8892a9bef Update test cases 2020-08-30 02:05:50 +09:00
Junegunn Choi 49be3a8ca9 Use branch name of origin if not specified 2020-08-30 02:05:50 +09:00
Junegunn Choi 95ef5e8d5f PlugDiff should be able to find pending updates
# We need the name of the default branch of origin
  git checkout some-tag-or-commit
  git log ..origin/master
2020-08-30 02:05:50 +09:00
Junegunn Choi 6fa6475fee User-specified branch name should not be empty 2020-08-30 02:05:50 +09:00
Junegunn Choi 01aab60ade Fix PowerShell instruction for Neovim
Close #976
2020-06-08 23:48:55 +09:00
Junegunn Choi 54d837fa54 Load plugin before running funcref hook
Fix #964
Fix https://github.com/junegunn/fzf.vim/issues/1008
2020-05-03 16:59:22 +09:00
Junegunn Choi 46f843aafe Add collaborators section 2019-09-03 10:52:29 +09:00
Junegunn Choi 08e78d8a5e Avoid downward search when using finddir
Close #750
2019-05-29 18:29:11 +09:00
Junegunn Choi 518a3566c3 Escape arguments to git command during PlugUpgrade
Fix #832
2019-04-11 17:53:13 +09:00
Junegunn ChoiandGitHub b6050d6f03 Allow cloning into an empty directory (#782)
Close #766

We can rely on git to check if the destination directory is empty.
2018-09-12 13:45:38 +09:00
Junegunn ChoiandGitHub 7f8fdd0444 Ignore useless use of on-demand loading (#786) 2018-09-12 13:40:33 +09:00
Junegunn ChoiandGitHub f80eed7379 Add <plug>(plug-preview) map (#769)
This allows you to override the default behavior of `o' or `<cr>'
binding in PlugDiff window.

e.g.
    " Move to preview window
    autocmd! FileType vim-plug nmap <buffer> o <plug>(plug-preview)<c-w>P

Close #749
Close #768
2018-06-20 18:09:06 +09:00
Junegunn Choi 96375cb7d3 Update README and add vim help file
Close #705
2017-11-27 00:58:29 +09:00
Junegunn Choi 2f4dc4d482 Add link to automatic installation instructions
Close #711
2017-11-27 00:15:46 +09:00
Junegunn Choi ddc67fc136 Fix helptags generation for plugins with custom rtp
Close #684
2017-09-25 00:00:03 +09:00
Junegunn Choi cd44b03db2 Remove extra quotes in PlugDiff output (#680) 2017-09-20 11:28:52 +09:00
Junegunn ChoiandGitHub b93975f794 Fix Travis CI build (dist: trusty) (#670) 2017-09-10 03:38:38 +09:00
Junegunn ChoiandGitHub 88cc9d7868 Create LICENSE 2017-07-10 13:21:14 +09:00
Junegunn Choi 449b4f1ed6 Disallow using standard Vim plugin directory as plug home
Close #646
2017-06-27 17:44:12 +09:00
Junegunn Choi 802b100415 Extend plug#load to process a list of names instead of varargs
Allows `call plug#load(keys(g:plugs))` for manually loading all plugins
at once. Close #638.
2017-06-06 16:17:31 +09:00
Junegunn ChoiandGitHub 06992bcfb9 Update installation instruction for Neovim on Windows (#634)
Close #633
2017-05-19 03:17:46 +09:00
Junegunn Choi f7e6a86807 Deprecate implicit vim-scripts expansion
vim-scripts.org is no longer maintained.

Close #625
2017-05-01 21:31:57 +09:00
Junegunn Choi 46ae29985d Proper escaping of tag patterns
Close #610
2017-04-04 17:45:37 +09:00
Junegunn Choi 769192d3d0 Append -- to git checkout commands
Checking out a branch or tag may not succeed if there is a path entry
with the same name. This commit appends -- to git checkout commands to
clarify that we're not referring to a file or a directory.

Close #602
2017-02-26 03:35:45 +09:00
Junegunn Choi e3252aae2c Commit hash in PlugDiff output can be longer than 7 characters
Close #597
2017-02-17 13:33:32 +09:00
Junegunn Choi f551a71688 Add plugin to &rtp before running post-update hook with : prefix
Close #593
2017-02-11 23:27:52 +09:00
Junegunn Choi e80a93d5d0 Fix Ruby installer on macOS system Vim
- Do not use io/console
- Interrupting threads crashes Vim, so don't do it

Close #592
Related #537, #538
2017-02-11 11:17:47 +09:00
Junegunn Choi d1ac3cdd1f Do not use nomodeline when triggering BufRead
Close #587
2017-02-03 13:29:05 +09:00
Junegunn Choi 5e6bd469ac Update README 2017-01-30 02:20:36 +09:00
Junegunn Choi 8c1aff151d Update README 2017-01-30 02:19:53 +09:00
Junegunn Choi d6bda025f1 Fix Vim 8 installer on Windows when path contains spaces
Close #565
2017-01-29 18:23:05 +09:00
Junegunn Choi 5fc9eab788 Add --sync flag to Plug{Install,Update}
Installer is not synchronous when started on VimEnter since
has('vim_starting') returns 0 in that case. We needed a way to make the
installer synchronous.

Related: #574
2017-01-04 02:00:00 +09:00
Junegunn Choi 93ffcb36de Commit preview should work with non-POSIX-compliant &shell
Close #572
2017-01-02 13:06:51 +09:00
Junegunn Choi f916aabfbe Update documentation
/cc @accolade
2016-12-19 01:59:24 +09:00
Junegunn Choi b50f9bb16b More description on plug#end
Related: #379
2016-12-18 12:12:57 +09:00
Junegunn Choi 8180692f81 Update usage examples
vim-plug has no support for dependencies. Remove comment that has been
a source of confusion. #544
2016-12-18 12:06:19 +09:00
Junegunn Choi a4aac4cf56 Do not check Ruby interface when parallel update is not needed
In case Ruby interface is completely broken that simply running
`:ruby require 'thread'` crashes Vim.

Close #564
2016-12-13 12:26:13 +09:00
Junegunn Choi c53ecd3acd Update installation instruction for Neovim
Suggest directories conforming to XDG Base Directory Specification.

Close #559
2016-12-10 18:25:21 +09:00
Junegunn ChoiandGitHub ca0b726f46 Merge pull request #558 from HiPhish/nospell
Do not check spelling in vim-plug buffers
2016-12-04 01:03:05 +09:00
Junegunn Choi 6ad18f5fb8 Ignore trailing ! in proxy command name
Close #557
2016-11-26 12:22:55 +09:00
Junegunn Choi 46ddb4af2d Set the default completion type of proxy command to "file"
Though we do not know the completion type of a command until the command
is loaded, setting it to file seems like the best thing we can do.
2016-11-10 12:03:37 +09:00
Junegunn ChoiandGitHub 54683aa2c7 Merge pull request #552 from midchildan/fix-git-version
Fix git version detection
2016-11-04 00:38:09 +09:00
Junegunn Choi abbbe914f0 Remove unnecessary operations 2016-10-29 04:46:58 +09:00
Junegunn Choi 1f4e3eb063 No need for filetype off unless g:did_load_filetypes exists
Reference: https://github.com/tpope/vim-pathogen/pull/26
2016-10-28 00:13:12 +09:00
Junegunn ChoiandGitHub 2fa2761b99 Merge pull request #545 from srstevenson/set-nolist
Set nolist in vim-plug buffers
2016-10-27 12:48:26 +09:00
Junegunn Choi 49c6b781e0 Do not prepend COUNT"REGISTER when feeding keys in insert mode
Close #543
2016-10-25 23:12:05 +09:00
Junegunn ChoiandGitHub f4427b97f1 Merge pull request #541 from junegunn/vim8
Asynchronous +job installer on Vim 8
2016-10-19 08:10:20 +09:00
Junegunn Choi 6287ba88d5 Fix installer output
- Same output format across different installers
- Avoid unnecessary construction of result string
- Fix multi-line error logging when exit_cb is called before out_cb
2016-10-18 14:30:48 +09:00
Junegunn Choi 1bbb7a55e3 Update Vim 8 requirement
https://github.com/junegunn/vim-plug/issues/498#issuecomment-254239466
2016-10-18 00:32:27 +09:00
Junegunn Choi d1022e948e Address out-of-order invocation of out_cb and exit_cb 2016-10-18 00:31:36 +09:00
Junegunn Choi b94607b172 Update README: +job 2016-10-17 18:00:20 +09:00
Junegunn Choi 6bff19c2a9 Set out_mode to raw for progress report 2016-10-17 17:52:13 +09:00
Junegunn Choi 759103d074 Refactor job callbacks with partial 2016-10-17 17:51:42 +09:00
Junegunn Choi 3f7344d2cc Set up Travis CI build for Neovim 2016-10-17 15:34:20 +09:00
Junegunn Choi 7928057108 Make Neovim installer synchronous during startup
Close #104

This allows for `nvim +PlugUpdate +qa` without Python.
2016-10-17 12:34:09 +09:00
Junegunn ChoiandGitHub c66e264d41 Fix Ruby installer on Vim 8.0.0036 (#538)
This could be a bug of Vim, but the new method should be safer in the
long run though it doesn't work on Ruby 1.8.
2016-10-17 12:22:20 +09:00
Junegunn Choi 01e4e9170a Update git URI validation in Ruby and Python installers
Contd. #530
2016-10-14 13:44:56 +09:00
Junegunn Choi 0662b5f4cc Fix Travis CI failure 2016-10-09 05:17:34 +09:00
Junegunn Choi a2f1ea481d Reuse existing plug window
Close #532
2016-10-09 04:48:53 +09:00
Junegunn ChoiandGitHub 7bad3e7802 Merge pull request #531 from junegunn/fix-530
Improve git URI validation
2016-10-08 23:48:52 +09:00
Junegunn Choi 6575bd65b1 Improve git URI validation
Close #530
2016-10-08 23:32:48 +09:00
Junegunn Choi 5d8c4bfc1f Print exception from post-update hook with : prefix 2016-10-08 23:22:06 +09:00