mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
92053449d4
Problem: `gf` in Vim script fails if multiple target files exist. Solution: Use globpath() which returns an array. In a Vim script, `gf` on `some#func()` will jump to `autoload/some.vim`. In this case, if there are multiple `autoload/foo.vim`s in 'runtimepath', `globpath(&runtimepath, path)` will return multiple paths, separated by newlines. As a result, the second and subsequent paths will be executed as commands in `autoload/vimgoto.vim:195`, causing an error. This change fixes this issue by making the result of `globpath()` an array. closes: #19379 Signed-off-by: thinca <thinca@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)