From 1be4e4e5409caccddf5c2f1bbfa16519f4c93de0 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 3 Dec 2022 00:26:42 -0500 Subject: [PATCH] Never run "filetype plugin indent on" a second time Resolves: https://github.com/tpope/vim-sensible/issues/126 --- plugin/sensible.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 2bdf479..92d5b21 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -8,7 +8,7 @@ else let g:loaded_sensible = 'yes' endif -if has('autocmd') +if !(exists('g:did_load_filetypes') && exists('g:did_load_ftplugin') && exists('g:did_indent_on')) filetype plugin indent on endif if has('syntax') && !exists('g:syntax_on')