10 Commits
Author SHA1 Message Date
mattn 7e5aae5e11 Skip BufRead for an unnamed empty buffer (#1341)
Loading a plugin on demand triggers BufRead to apply ftdetect and ftplugin files, but there is nothing to detect in an unnamed empty buffer such as the one Vim creates on startup.

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
2026-10-15 13:36:11 +09:00
mattn 4da42e9a5c Use isdirectory() to check plugin directories (#1340)
finddir() and globpath() are much slower than isdirectory() for a single
literal path, especially on Windows.  s:reorg_rtp() runs on every lazy
load and checked the after directory of all loaded plugins with
globpath().

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
2026-10-05 09:47:24 +09:00
mattn 8b45742540 Disable credential.helper for git fetch (#1046) 2020-12-14 14:30:44 +09:00
mattn c44422460e Disable credential-helper (#1026) 2020-10-20 20:48:58 +09:00
mattnandJunegunn Choi b17f477585 Reduce the number of git processes for faster operation (#937)
* Make git operation faster

When using many plugins, vim-plug may spawn many git processes for them.

* get revision
* get branch
* get remote.origin.url

This is too heavy. especially on Windows. This change get revision, branch,
remote origin url directly from .git directory.

This idea is borrowed from @k-takata's commit for minpac.

Executing external programs is slow especially on Windows.
Read the information directly from .git directory.

* Copied from devel branch of minpac

* Avoid errors

* Show errors

* Use empty()

* Use empty string instead of v:null

* Check spec.branch is empty

* Use branch

* Fix branch and revision

* Remove l: and use s:trim

* Fix and simplify s:git_get_remote_origin_url

* Do not cut off commit hash for correctness

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2020-09-08 22:13:21 +09:00
Yasuhiro Matsumoto 588467903b Use branch 2020-08-30 02:05:50 +09:00
Yasuhiro Matsumoto 5706f70f8f Add missing function 2020-08-30 02:05:50 +09:00
Yasuhiro Matsumoto 4a3c5e7ac2 Support non-master default branch 2020-08-30 02:05:50 +09:00
Yasuhiro Matsumoto b32169ff30 Use job_start on vim
Close #498
Close #534
2016-10-17 16:16:03 +09:00
Yasuhiro Matsumoto 060c0e6d6c Enable multi-thread on windows
Specify PIPE as stdin for subprocess.Pipe for gvim.exe.
Also fixes some ruby implementation.

* windows doesn't have pgrep.
* windows can't handle SIGTERM.
* windows can't handle /dev/null
* redraw always
2015-12-10 01:00:42 +09:00