Samuel D. Leslie
8ed2617ba0
Add support for parallel fetching of Git submodules ( #784 )
...
Git v2.8 introduced support for parallel fetching of submodules. This
can result in a substantial performance boost when performing a "git
submodule update" in a repository with many submodules, potentially
further magnified when updating submodules recursively.
This commit introduces a check on the Git version to see if it supports
parallel submodule fetching. If it does, we add the '--jobs=N' argument
to our call to "git submodule update", where N is g:plug_threads or the
vim-plug default of 16.
2018-09-06 14:48:54 +09:00
Árni Dagur
0a255ee62d
Clear colorcolumn in vim-plug buffer ( #779 )
2018-08-08 10:52:00 +09:00
dohq
e0ca037a4f
has('win32') is enough for detecting Windows ( #765 )
2018-06-20 18:18:50 +09:00
Junegunn Choi
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
WADA Takashi
fef4e434ba
Fix Windows batch file format ( #755 )
...
`writefile()` always output LF without CR each lines.
But batch file on Windows needs CR and LF, at end of lines.
And if the path of home directory contains non-ASCII
characters like Japanese username (e.g. `C:\Users\太郎`),
batch file without CR can't be executed correctly.
2018-05-12 11:21:17 +09:00
Daniel Hahler
e6a775e0df
Fix handling of changed up-to-date msg from Git ( #724 )
...
The msg was changed from 'Already up-to-date' to 'Already up to date'.
2018-03-04 13:43:13 +09:00
Daniel Hahler
9813d5ead5
Display not-loaded status with all plugins that have a dir ( #547 )
2017-10-15 18:12:15 +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
Jan Edmund Lazo
4f95bce2f4
Fix PlugDiff for Windows ( #681 )
...
Close #680
2017-09-20 11:02:54 +09:00
Jan Edmund Lazo
7f96c98b0a
Prepend 'silent' to ':!' to avoid hit-enter prompt ( #678 )
...
Close #606
Fix for GVim on Windows.
2017-09-19 13:53:35 +09:00
Jan Edmund Lazo
05c8983d1a
Port fzf#shellescape ( #676 )
...
Close #635
Close #668
Close #539
Use a temporary batchfile for :!, system(), and jobs and run it in cmd.exe.
This bypasses Vim/Neovim issues in Windows and reduces the need to set more options.
Also, s:shellesc_cmd works in a batchfile only.
Set shellredir for system() in Windows
$SHELL sets the default value of 'shell' (see :h 'shell').
This affects shellredir but cmd.exe requires '>%s 2>&1'.
2017-09-19 10:37:22 +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 Choi
f7e6a86807
Deprecate implicit vim-scripts expansion
...
vim-scripts.org is no longer maintained.
Close #625
2017-05-01 21:31:57 +09:00
Daniel Hahler
9dcab48628
Load plugins only once in plug#load ( #616 )
...
When loading 'deoplete.nvim' for the 2nd time during InsertEnter
manually, the `s:dobufread` (or `s:lod` itself) prevents it to work
properly - likely because the plugin gets resourced.
Maybe there could be a way to force this (and reload plugins always),
but by default it seems to make sense to skip already loaded plugins.
2017-04-17 02:46:02 +09:00
Andrew Nowak
1d3c88292b
Fix invalid diagnosis of PlugStatus with wildcard tags ( #619 )
2017-04-14 10:13:49 +09:00
Justin M. Keyes
580f0a559c
nvim: Enable job-control nvim 0.2+ ( #617 )
...
Closes #583
References https://github.com/neovim/neovim/pull/6497
2017-04-12 11:10:09 +09:00
Junegunn Choi
46ae29985d
Proper escaping of tag patterns
...
Close #610
2017-04-04 17:45:37 +09:00
Christian Rondeau
7f4e6cb843
Fix crlf in clones under cygwin ( #608 )
...
Close #497
2017-03-13 01:09:25 +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
Nikita Slepogin
359a65230e
Fix job_start with spaces in path in Windows ( #588 )
...
Close #586
Close #565
2017-01-31 21:19:48 +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
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
Marco Hinz
5bccd9bc98
Neovim: use "dict" when referring to "self" ( #566 )
2016-12-13 12:25:46 +09:00
Daniel Hahler
1540764563
git_validate: better error with checkout being ahead/diverged ( #546 )
2016-12-11 21:43:44 +09:00
HiPhish
942f994844
Do not check spelling in vim-plug buffers
2016-12-03 12:30:51 +01: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
midchildan
8f38888fad
Fix git version detection.
2016-11-03 22:38:45 +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
Scott Stevenson
078f32142d
Set nolist in vim-plug buffers
2016-10-26 22:30:41 +01: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 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
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
Yasuhiro Matsumoto
b32169ff30
Use job_start on vim
...
Close #498
Close #534
2016-10-17 16:16:03 +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 Choi
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
a2f1ea481d
Reuse existing plug window
...
Close #532
2016-10-09 04:48:53 +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
Junegunn Choi
c0a83826f9
Print warning message when plug window is closed
2016-10-08 23:06:24 +09:00
Josh Matthews
1f206db965
Fixing E684 when VisualHostKey is enabled for ssh
...
Having VisualHostKey enabled for ssh can cause lines containing a single
"^M" character to appear in the git output, which causes E684 to be
thrown if not filtered out.
2016-09-15 16:35:11 -04:00
Junegunn Choi
f4381fb748
Fix loading on c-operator
...
Close #518
2016-09-11 12:04:08 +09:00
Junegunn Choi
561518fd8c
Print post-processing error in multi-line paragraph
...
Related #510
2016-08-15 00:46:10 +09:00
Marco Hinz
9df0580eff
Silence :delete commands
...
Add :silence to all :delete commands to avoid filling up the message history
with "1 line less" messages, in case 'report' is set to 0.
2016-07-31 22:50:50 +02:00
Junegunn Choi
e15598fe45
Add g:plug_pwindow for customizing preview window layout
...
Close #504
2016-07-23 18:36:30 +09:00
Junegunn Choi
326cb71a2a
No period in echo message
2016-07-23 18:07:12 +09:00
Junegunn Choi
c9a7ca1e9e
Define d operator for selectively removing invalid directories
...
Fix #503
2016-07-23 18:02:00 +09:00
Junegunn Choi
5695fb8474
Do not proceed if $GIT_DIR or $GIT_WORK_TREE is found
...
Close #506
2016-07-23 10:13:25 +09:00
Junegunn Choi
17996cedce
Support { 'do': ':VimCommand' } notation
...
Close #450
2016-07-13 23:01:41 +09:00
Junegunn Choi
460fbe82e0
Ignore inconsistencies between g:plugs and g:plugs_order
...
https://github.com/junegunn/vim-plug/issues/469#issuecomment-226965736
2016-06-19 11:18:20 +09:00
Junegunn Choi
05a1620bb1
Put cursor inside the installer window after post-update hook
...
https://github.com/chrisbra/unicode.vim/issues/16
2016-06-16 22:17:21 +09:00
Junegunn Choi
cb5bed0e35
Always set register in map-based ODL
2016-05-31 15:27:27 +09:00
Junegunn Choi
44893a1901
Fix #491 - Lazy-loading with omaps
2016-05-31 12:44:48 +09:00
Junegunn Choi
765a2d21d3
Do not trigger BufRead if not necessary
...
Close #490
2016-05-23 22:22:43 +09:00
Junegunn Choi
7c7ef8cf2f
Trigger BufRead when a plugin is loaded by on
condition
...
Close #489
2016-05-23 13:11:06 +09:00
Junegunn Choi
bf1e0fb8eb
Do not use Ruby older than 1.8.7
...
Close #482
2016-05-13 02:06:00 +09:00
Junegunn Choi
656ccef8dc
Switch &shell during submodule update
...
Fix #481
2016-04-29 13:39:17 +09:00
Junegunn Choi
41de3c713c
Export Plug command as plug# function
...
https://github.com/junegunn/vim-plug/issues/477#issuecomment-212746298
One can directly use it to redefine Plug command:
function! s:plug_with_default(...)
call plug#(a:1, extend(get(g:, 'plug_opts', {}), get(a:000, 1, {})))
endfunction
command! -nargs=+ Plug call s:plug_with_default(<args>)
2016-04-22 02:50:04 +09:00
Junegunn Choi
e6ea538558
Support wildcards in tag option
...
Close #427
2016-04-17 15:32:34 +09:00
Junegunn Choi
0d9efb01c7
Fix #474 - Load ftdetect files in filetypedetect augroup
2016-04-17 01:13:13 +09:00
Junegunn Choi
c6ed41f47e
Detect plugins that are diverged their origins
...
Close #462
2016-04-10 20:33:37 +09:00
Junegunn Choi
0f3bd51d44
Minor refactoring
2016-04-10 20:24:09 +09:00
Chayoung You
a61d097037
Make Plug{Install,Update}! trigger post-fetch checkout, submodule update
...
Now `:PlugInstall!` and `:PlugUpdate!` forces to update submodules.
`:PlugInstall!` now also checks out to new specified branch, tag, or
commit.
Also added tests for changing branch, tag, or commit.
2016-04-04 14:05:35 +09:00
Junegunn Choi
158fd28bc4
Fall back to Python installer if Ruby is broken
...
Close #460 . Also remove unnecessary `return 0` statements.
2016-04-01 00:03:45 +09:00
Junegunn Choi
76e9076ef4
Clear message on retry
...
Close #459
2016-03-31 23:06:11 +09:00
Junegunn Choi
36973defbd
Fix #455 - git config should read local .git/config instead of $GIT_CONFIG
2016-03-30 13:25:13 +09:00
Junegunn Choi
82ac9d9075
Use <nomodeline> on User autocmd if possible
...
http://ftp.vim.org/pub/vim/patches/7.3/7.3.442
2016-03-29 23:02:26 +09:00
Simon Weil
c1f9d7cdb4
Reset colors for git show
2016-03-25 15:07:14 +03:00
Junegunn Choi
f666048052
Update submodules whenever the repo is updated
...
It's not enough to track the changes in .gitmodules only
2016-03-24 16:17:05 +09:00
Junegunn Choi
eb47183af2
Refactor duplicate logic in installers
...
This commit extracts duplicate logic out of three installers.
Pros.
- Better maintainability
- Easier to add/extend the features
- Fixes a bug when 'commit' option is used, submodules are updated
before the designated commit is checked out
Cons.
- The whole process takes slightly longer due to lost parallelism after pull
- Especially, submodule updates are not parallelized
- However, this shouldn't matter much in practice as there are few
plugins that heavily rely on submodules
2016-03-24 01:06:46 +09:00
Junegunn Choi
e4ddb89c20
Fix regular expressions for hex digits
2016-03-22 12:53:05 +09:00
Junegunn Choi
820cc63569
Remove redundant checks of git --version in Neovim installer
...
Related: #445
2016-03-12 12:34:57 +09:00
Junegunn Choi
7218143147
Do not proceed if getcwd() returns an empty string
...
Close #439
2016-03-06 11:03:33 +09:00
Junegunn Choi
c3d57ac6b5
Avoid unnecessary runtime command ( #434 )
2016-03-03 13:03:47 +09:00
Junegunn Choi
16902f9003
Use runtime only when the file is not found in the plugin directory ( #434 )
...
There can be multiple files that matches the pattern (e.g.
syntax/foo.vim) in &runtimepath.
2016-03-03 10:53:34 +09:00
Junegunn Choi
b082ae3847
Fix #434 - Use runtime to load syntax file during ft-based ODL
...
A plugin may have 'after/syntax/foo.vim' without 'syntax/foo.vim'.
e.g. https://github.com/pbrisbin/vim-syntax-shakespeare
2016-03-03 10:43:41 +09:00
Junegunn Choi
6246ad284c
Strip trailing whitespaces in PlugDiff output
2016-03-03 02:14:57 +09:00
Junegunn Choi
b0f714e812
PlugDiff to include graphical representation of commit history
...
Close #411
2016-02-27 13:02:58 +09:00
Joshua Priddle
396c60f24c
Avoid multiple syntax enable
during Vim startup
2016-02-20 21:00:06 -05:00
Junegunn Choi
ffd54224a0
Fix #410 - Do not load irrelevant syntax files
2016-02-18 01:34:04 +09:00
Junegunn Choi
8d4c341a0a
Rename script-local function to generate better error message
...
This commit renames s:add which is called on Plug command to s:Plug.
E116: Invalid arguments for function <SNR>2_Plug
Related: #407
2016-02-13 12:44:52 +09:00
Jeremy Pallats/starcraft.man
88e2fa380c
Fix #397 : clarify in docs that GitHub is the default plugin source
2016-02-02 08:40:11 -05:00
Jeremy Pallats/starcraft.man
d5a5697dc0
Fix #394 : Avoid problem happening.
...
* Do not map during prepare when function can be async.
Delay to s:finish()
* Always create new buffer, due to mappings change.
* Don't show Pending updates when no appropriate plugs.
* No need for print brackets on python 2.
2016-01-29 15:20:22 -05:00
Junegunn Choi
799e20a682
Better error message when git executable is not found
...
Related: #392 , #52
2016-01-28 13:35:50 +09:00