mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
30d42855eb
Before71fd19d7acthis function went through a `:!` command on all platforms, so it needed special escaping for `#` and others. After that commit it doesn't go through that path on unix platforms. Then with48581f2ba9this escaping was re-added on unix and it's needs since it goes through `sh -c`, but it should not have the extra escaping specific to `:!`. Specifically my original broken command is: ``` PATH=/usr/bin:/bin VIMRUNTIME=~/dev/vim/runtime ./src/vim -u NONE -c 'call dist#vim9#Open("https://github.com/keith/dotfiles/blob/7bce9f5c697df6a549cf97bf5606d8b639e5bf5a/vimrc#L19")' ``` Where the `#L19` ends up being opened as `%5C#L19`. But I verified this case still works as well: ``` PATH=/usr/bin:/bin VIMRUNTIME=~/dev/vim/runtime ./src/vim -u NONE -c 'call dist#vim9#Open("foo bar.txt")' ``` Which is what would otherwise break if we weren't doing any shell escaping on unix. closes: #19996 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
The autoload directory is for standard Vim autoload scripts. These are functions used by plugins and for general use. They will be loaded automatically when the function is invoked. See ":help autoload". gzip.vim for editing compressed files netrw*.vim browsing (remote) directories and editing remote files tar.vim browsing tar files zip.vim browsing zip files paste.vim common code for mswin.vim, menu.vim and macmap.vim spellfile.vim downloading of a missing spell file Omni completion files: ccomplete.vim C csscomplete.vim HTML / CSS htmlcomplete.vim HTML javascriptcomplete.vim Javascript phpcomplete.vim PHP pythoncomplete.vim Python rubycomplete.vim Ruby syntaxcomplete.vim from syntax highlighting xmlcomplete.vim XML (uses files in the xml directory)