view runtime/ftplugof.vim @ 34799:f9b510d3ed32 v9.1.0272

patch 9.1.0272: autocmd may change cwd after :tcd and :lcd Commit: https://github.com/vim/vim/commit/9d956ee8eab64a0d412b045305fde5bc03d95d4a Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Apr 7 18:16:10 2024 +0200 patch 9.1.0272: autocmd may change cwd after :tcd and :lcd Problem: Autocommand may change currect directory after :tcd and :lcd. Solution: Also clear tp_localdir and w_localdir when using aucmd_win. (zeertzjq) closes: #14435 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Apr 2024 18:30:03 +0200
parents 4027cefc2aab
children
line wrap: on
line source

vim9script

# Vim support file to switch off loading plugins for file types
#
# Maintainer:	The Vim Project <https://github.com/vim/vim>
# Last Change:	2023 Aug 10
# Former Maintainer:	Bram Moolenaar <Bram@vim.org>

if exists("g:did_load_ftplugin")
  unlet g:did_load_ftplugin
endif

# Remove all autocommands in the filetypeplugin group, if any exist.
if exists("#filetypeplugin")
  silent! au! filetypeplugin *
endif