<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/ftplugin/zig.vim, branch userreg</title>
<subtitle>Neovim fork with Rahm's personal hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/'/>
<entry>
<title>vim-patch:cd8a3eaf5348</title>
<updated>2023-11-05T20:52:02+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-11-04T10:37:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=26cdff0e92bf93a2afcb4a78e056780ea3f582e7'/>
<id>26cdff0e92bf93a2afcb4a78e056780ea3f582e7</id>
<content type='text'>
runtime(dist): centralize safe executable check and add vim library (vim/vim#13413)

Follow up to 816fbcc26 (patch 9.0.1833: [security] runtime file fixes,
2023-08-31) and f7ac0ef50 (runtime: don't execute external commands when
loading ftplugins, 2023-09-06).

This puts the logic for safe executable checks in a single place, by introducing
a central vim library, so all filetypes benefit from consistency.

Notable changes:
- dist#vim because the (autoload) namespace for a new runtime support
  library. Supporting functions should get documentation. It might make
  life easier for NeoVim devs to make the documentation a new file
  rather than cram it into existing files, though we may want
  cross-references to it somewhere…
- The gzip and zip plugins need to be opted into by enabling execution
  of those programs (or the global plugin_exec). This needs
  documentation or discussion.
- This fixes a bug in the zig plugin: code setting s:tmp_cwd was removed
  in f7ac0ef50 (runtime: don't execute external commands when loading
  ftplugins, 2023-09-06), but the variable was still referenced. Since
  the new function takes care of that automatically, the variable is no
  longer needed.

https://github.com/vim/vim/commit/cd8a3eaf5348feacfecab4b374b7ea4ce6a97422

Co-authored-by: D. Ben Knoble &lt;ben.knoble+github@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
runtime(dist): centralize safe executable check and add vim library (vim/vim#13413)

Follow up to 816fbcc26 (patch 9.0.1833: [security] runtime file fixes,
2023-08-31) and f7ac0ef50 (runtime: don't execute external commands when
loading ftplugins, 2023-09-06).

This puts the logic for safe executable checks in a single place, by introducing
a central vim library, so all filetypes benefit from consistency.

Notable changes:
- dist#vim because the (autoload) namespace for a new runtime support
  library. Supporting functions should get documentation. It might make
  life easier for NeoVim devs to make the documentation a new file
  rather than cram it into existing files, though we may want
  cross-references to it somewhere…
- The gzip and zip plugins need to be opted into by enabling execution
  of those programs (or the global plugin_exec). This needs
  documentation or discussion.
- This fixes a bug in the zig plugin: code setting s:tmp_cwd was removed
  in f7ac0ef50 (runtime: don't execute external commands when loading
  ftplugins, 2023-09-06), but the variable was still referenced. Since
  the new function takes care of that automatically, the variable is no
  longer needed.

https://github.com/vim/vim/commit/cd8a3eaf5348feacfecab4b374b7ea4ce6a97422

Co-authored-by: D. Ben Knoble &lt;ben.knoble+github@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:e08bfef88bd0</title>
<updated>2023-10-19T15:20:55+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>greg@gpanders.com</email>
</author>
<published>2023-10-19T15:20:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=e6d352d8d7d8a987d0bd9b2e13bfd395e1127c3e'/>
<id>e6d352d8d7d8a987d0bd9b2e13bfd395e1127c3e</id>
<content type='text'>
runtime(zig): Update Zig runtime files (vim/vim#13388)

Update runtime files from upstream (https://github.com/zig/zig.vim) at
commit 54c216e5306a5c3878a60596aacb94dca8652ab9.

https://github.com/vim/vim/commit/e08bfef88bd05a9d27ee16c57cd10173e280f600

Co-authored-by: Gregory Anders &lt;8965202+gpanders@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
runtime(zig): Update Zig runtime files (vim/vim#13388)

Update runtime files from upstream (https://github.com/zig/zig.vim) at
commit 54c216e5306a5c3878a60596aacb94dca8652ab9.

https://github.com/vim/vim/commit/e08bfef88bd05a9d27ee16c57cd10173e280f600

Co-authored-by: Gregory Anders &lt;8965202+gpanders@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:partial:9.0.1886: Various Typos</title>
<updated>2023-09-09T09:58:32+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2023-09-09T09:47:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=b9d9cd77421a7906d6e0a968a3c0ddd86e9923fe'/>
<id>b9d9cd77421a7906d6e0a968a3c0ddd86e9923fe</id>
<content type='text'>
Problem:  Various Typos
Solution: Fix Typos

This is a collection of typo related commits.

closes: vim/vim#12753
closes: vim/vim#13016

https://github.com/vim/vim/commit/ee17b6f70d382ec6c5d8d27b56c4e84106ac8c55

Co-authored-by: Christian Brabandt &lt;cb@256bit.org&gt;
Co-authored-by: Adri Verhoef &lt;a3@a3.xs4all.nl&gt;
Co-authored-by: Viktor Szépe &lt;viktor@szepe.net&gt;
Co-authored-by: nuid64 &lt;lvkuzvesov@proton.me&gt;
Co-authored-by: Meng Xiangzhuo &lt;aumo@foxmail.com&gt;
Co-authored-by: Dominique Pellé &lt;dominique.pelle@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:  Various Typos
Solution: Fix Typos

This is a collection of typo related commits.

closes: vim/vim#12753
closes: vim/vim#13016

https://github.com/vim/vim/commit/ee17b6f70d382ec6c5d8d27b56c4e84106ac8c55

Co-authored-by: Christian Brabandt &lt;cb@256bit.org&gt;
Co-authored-by: Adri Verhoef &lt;a3@a3.xs4all.nl&gt;
Co-authored-by: Viktor Szépe &lt;viktor@szepe.net&gt;
Co-authored-by: nuid64 &lt;lvkuzvesov@proton.me&gt;
Co-authored-by: Meng Xiangzhuo &lt;aumo@foxmail.com&gt;
Co-authored-by: Dominique Pellé &lt;dominique.pelle@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:f7ac0ef50988</title>
<updated>2023-09-07T07:06:35+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-09-06T21:50:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=ec753cf40db4d326c2fbbf5e5be0d249be561a41'/>
<id>ec753cf40db4d326c2fbbf5e5be0d249be561a41</id>
<content type='text'>
runtime: don't execute external commands when loading ftplugins

This is a followup to 816fbcc262687b81fc46f82f7bbeb1453addfe0c (patch
9.0.1833: [security] runtime file fixes)

It basically disables that external commands are run on loading of the
filetype plugin, **unless** the user has set the `g:plugin_exec = 1`
global variable in their configuration or for a specific filetype the
variable g:&lt;filetype&gt;_exec=1.

There are a few more plugins, that may execute system commands like
debchangelog, gitcommit, sh, racket, zsh, ps1 but those do at least
do not run those commands by default during loading of the filetype plugin
(there the command is mostly run as convenience for auto-completion or
to provide documentation lookup).

closes: vim/vim#13034

https://github.com/vim/vim/commit/f7ac0ef5098856bedca26e7073594a407c05636f

Co-authored-by: Christian Brabandt &lt;cb@256bit.org&gt;
Co-authored-by: Tim Pope &lt;vim@tpope.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
runtime: don't execute external commands when loading ftplugins

This is a followup to 816fbcc262687b81fc46f82f7bbeb1453addfe0c (patch
9.0.1833: [security] runtime file fixes)

It basically disables that external commands are run on loading of the
filetype plugin, **unless** the user has set the `g:plugin_exec = 1`
global variable in their configuration or for a specific filetype the
variable g:&lt;filetype&gt;_exec=1.

There are a few more plugins, that may execute system commands like
debchangelog, gitcommit, sh, racket, zsh, ps1 but those do at least
do not run those commands by default during loading of the filetype plugin
(there the command is mostly run as convenience for auto-completion or
to provide documentation lookup).

closes: vim/vim#13034

https://github.com/vim/vim/commit/f7ac0ef5098856bedca26e7073594a407c05636f

Co-authored-by: Christian Brabandt &lt;cb@256bit.org&gt;
Co-authored-by: Tim Pope &lt;vim@tpope.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:67c951df4c95</title>
<updated>2023-09-07T07:06:35+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-09-06T21:49:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5d1c1da3c90adece96f491e7f12fd76c03a881c9'/>
<id>5d1c1da3c90adece96f491e7f12fd76c03a881c9</id>
<content type='text'>
runtime(ftplugin): allow to exec if curdir is in PATH

In case the current directory is present as valid $PATH entry, it is OK
to call the program from it, even if vim curdir is in that same
directory.

(Without that patch, for instance, you will not be able to open .zip
files while your current directory is /bin)

closes: vim/vim#13027

https://github.com/vim/vim/commit/67c951df4c95981c716eeedb1b102d9668549e65

Co-authored-by: Anton Sharonov &lt;anton.sharonov@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
runtime(ftplugin): allow to exec if curdir is in PATH

In case the current directory is present as valid $PATH entry, it is OK
to call the program from it, even if vim curdir is in that same
directory.

(Without that patch, for instance, you will not be able to open .zip
files while your current directory is /bin)

closes: vim/vim#13027

https://github.com/vim/vim/commit/67c951df4c95981c716eeedb1b102d9668549e65

Co-authored-by: Anton Sharonov &lt;anton.sharonov@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:9.0.1833: [security] runtime file fixes (#24969)</title>
<updated>2023-09-01T03:38:31+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2023-09-01T03:38:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=7bf0963d48ec76b1cdeee55edc8f2053eca87367'/>
<id>7bf0963d48ec76b1cdeee55edc8f2053eca87367</id>
<content type='text'>
Problem:  runtime files may execute code in current dir
Solution: only execute, if not run from current directory

The perl, zig and ruby filetype plugins and the zip and gzip autoload
plugins may try to load malicious executable files from the current
working directory.  This is especially a problem on windows, where the
current directory is implicitly in your $PATH and windows may even run a
file with the extension `.bat` because of $PATHEXT.

So make sure that we are not trying to execute a file from the current
directory. If this would be the case, error out (for the zip and gzip)
plugins or silently do not run those commands (for the ftplugins).

This assumes, that only the current working directory is bad. For all
other directories, it is assumed that those directories were
intentionally set to the $PATH by the user.

https://github.com/vim/vim/commit/816fbcc262687b81fc46f82f7bbeb1453addfe0c

Co-authored-by: Christian Brabandt &lt;cb@256bit.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:  runtime files may execute code in current dir
Solution: only execute, if not run from current directory

The perl, zig and ruby filetype plugins and the zip and gzip autoload
plugins may try to load malicious executable files from the current
working directory.  This is especially a problem on windows, where the
current directory is implicitly in your $PATH and windows may even run a
file with the extension `.bat` because of $PATHEXT.

So make sure that we are not trying to execute a file from the current
directory. If this would be the case, error out (for the zip and gzip)
plugins or silently do not run those commands (for the ftplugins).

This assumes, that only the current working directory is bad. For all
other directories, it is assumed that those directories were
intentionally set to the $PATH by the user.

https://github.com/vim/vim/commit/816fbcc262687b81fc46f82f7bbeb1453addfe0c

Co-authored-by: Christian Brabandt &lt;cb@256bit.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:3fc7a7e44abd</title>
<updated>2023-08-24T02:33:06+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-08-24T00:07:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=327e3fab9e66701334a55dd7893283acb85899a2'/>
<id>327e3fab9e66701334a55dd7893283acb85899a2</id>
<content type='text'>
runtime: Fix typos in various files

closes: vim/vim#12836

https://github.com/vim/vim/commit/3fc7a7e44abda6505ccd39a6d067db6e5173cbf6

Co-authored-by: Viktor Szépe &lt;viktor@szepe.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
runtime: Fix typos in various files

closes: vim/vim#12836

https://github.com/vim/vim/commit/3fc7a7e44abda6505ccd39a6d067db6e5173cbf6

Co-authored-by: Viktor Szépe &lt;viktor@szepe.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:86b4816766d9 (#21314)</title>
<updated>2022-12-08T15:33:38+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2022-12-08T15:33:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=35767769036671d5ce562f53cae574f9c66e4bb2'/>
<id>35767769036671d5ce562f53cae574f9c66e4bb2</id>
<content type='text'>
Update runtime files

https://github.com/vim/vim/commit/86b4816766d976a7ecd4403eca1f8bf6b4105800

vim-patch:9.0.1029: autoload directory missing from distribution

Problem:    Autoload directory missing from distribution.
Solution:   Add the autoload/zig directory to the list of distributed files.

https://github.com/vim/vim/commit/84dbf855fb2d883481f74ad0ccf3df3f8837e6bf

Co-authored-by: Bram Moolenaar &lt;Bram@vim.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update runtime files

https://github.com/vim/vim/commit/86b4816766d976a7ecd4403eca1f8bf6b4105800

vim-patch:9.0.1029: autoload directory missing from distribution

Problem:    Autoload directory missing from distribution.
Solution:   Add the autoload/zig directory to the list of distributed files.

https://github.com/vim/vim/commit/84dbf855fb2d883481f74ad0ccf3df3f8837e6bf

Co-authored-by: Bram Moolenaar &lt;Bram@vim.org&gt;</pre>
</div>
</content>
</entry>
</feed>
