summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-01-27 07:18:41 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-01-27 07:20:41 +0800
commitf79bddd669fd14e650eb0922b4da5c00f5a8e3ad (patch)
tree39298d610c02d883882a56039c0864ea20203dd2 /runtime/ftplugin
parent6543217afc0203f5edafc6c696a70be1ac7f4923 (diff)
vim-patch:b8efcc0: runtime(vim): set 'path' to common Vim directories
closes: vim/vim#19219 https://github.com/vim/vim/commit/b8efcc02028d9a3aa5844978025997e258d84469 Co-authored-by: Mateo Gjika <104777599+mateoxh@users.noreply.github.com>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/vim.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
index a989cdbdc9..95916fde5f 100644
--- a/runtime/ftplugin/vim.vim
+++ b/runtime/ftplugin/vim.vim
@@ -7,6 +7,7 @@
" @Konfekt
" @tpope (s:Help())
" 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")
@@ -21,7 +22,7 @@ set cpo&vim
if !exists('*VimFtpluginUndo')
func VimFtpluginUndo()
- setl fo< isk< com< tw< commentstring< keywordprg<
+ setl fo< isk< com< tw< commentstring< keywordprg< path<
sil! delc -buffer VimKeywordPrg
if exists('b:did_add_maps')
silent! nunmap <buffer> [[
@@ -117,6 +118,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