commit | 3c9256f2644727d75ca4297e851e1f81a3477e50 | [log] [tgz] |
---|---|---|
author | Michael Giuffrida <michaelpg@chromium.org> | Tue Oct 17 06:15:35 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 17 06:15:35 2017 |
tree | 81171ebfdd5bcb58d88217d4418563d4dc9edb0c | |
parent | 9efe6d35bc156e21d2981bf6f6452463a8f7cd31 [diff] |
Vim: Don't prepend to runtimepath Recommend appending, instead of prepending, paths to `runtimepath`. Vim uses the first directory in the 'runtimepath' option for some special uses, such as the location of the .netrwhist file.[1] Prepending these paths to `runtimepath` may result in unwanted file creation in those directories, leading to annoying untracked files in your workdir. It should be safe to append these paths instead, assuming other scripts for these file types aren't appended first. Alternatively, we could add files like .netrwhist to .gitignore, but then developers would lose global Vim history when removing their workdir, which is weird. [1] https://github.com/vim/vim/blob/890680ca6364386fabb271c85e0755bcaa6a33c1/runtime/doc/pi_netrw.txt#L1434 Change-Id: I3bff2aa540a8392b103d0edf3eba59b7482296c7 Reviewed-on: https://chromium-review.googlesource.com/721256 Reviewed-by: Scott Graham <scottmg@chromium.org> Commit-Queue: Michael Giuffrida <michaelpg@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#509292} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: c5f65876ea05ad7f37c58b811d69c8e1480ac421