runtime(vim): set 'path' to common Vim directories
Commit:
https://github.com/vim/vim/commit/b8efcc02028d9a3aa5844978025997e258d84469
Author: Mateo Gjika <[email protected]>
Date: Mon Jan 26 19:45:21 2026 +0000
runtime(vim): set 'path' to common Vim directories
closes: https://github.com/vim/vim/issues/19219
Signed-off-by: Mateo Gjika <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
index 00b4332fa..05aeac4ce 100644
--- a/runtime/ftplugin/vim.vim
+++ b/runtime/ftplugin/vim.vim
@@ -11,6 +11,7 @@
" 2025 Aug 08 by Vim Project (add Vim script complete function #17871)
" 2025 Aug 12 by Vim Project (improve vimgoto script #17970))
" 2025 Aug 16 by Vim Project set com depending on Vim9 or legacy script
+" 2026 Jan 26 by Vim Project set path to common Vim directories #19219
" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
@@ -25,7 +26,7 @@ set cpo&vim
if !exists('*VimFtpluginUndo')
func VimFtpluginUndo()
- setl fo< isk< com< tw< commentstring< include< define< keywordprg<
omnifunc<
+ setl fo< isk< com< tw< commentstring< include< define< keywordprg<
omnifunc< path<
sil! delc -buffer VimKeywordPrg
if exists('b:did_add_maps')
silent! nunmap <buffer> [[
@@ -135,6 +136,10 @@ if &tw == 0
setlocal tw=78
endif
+" set 'path' to common Vim directories
+setlocal path-=/usr/include
+setlocal
path+=pack/**,runtime/**,autoload/**,colors/**,compiler/**,ftplugin/**,indent/**,keymap/**,macros/**,plugin/**,syntax/**,after/**
+
if !exists("no_plugin_maps") && !exists("no_vim_maps")
let b:did_add_maps = 1
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vkSWH-00FFJe-Jq%40256bit.org.