@@ -205,7 +205,7 @@ function! s:GetFilenames(path, filename) " {{{1
205205endfunction " }}}1
206206
207207function ! s: UseConfigFiles () abort " Apply config to the current buffer {{{1
208- let b: editorconfig_tried = 1
208+ call setbufvar ( ' % ' , ' editorconfig_tried' , 1 )
209209 let l: buffer_name = expand (' %:p' )
210210
211211 " Only process normal buffers (do not treat help files as '.txt' files)
@@ -226,7 +226,7 @@ function! s:UseConfigFiles() abort " Apply config to the current buffer {{{1
226226 endif
227227 endif
228228
229- if exists ( " b:EditorConfig_disable " ) && b: EditorConfig_disable
229+ if getbufvar ( ' % ' , ' EditorConfig_disable' , 0 )
230230 if g: EditorConfig_verbose
231231 echo ' EditorConfig disabled --- skipping buffer "' . l: buffer_name . ' "'
232232 endif
@@ -270,11 +270,11 @@ function! s:UseConfigFiles() abort " Apply config to the current buffer {{{1
270270
271271 if s: editorconfig_core_mode == ? ' vim_core'
272272 if s: UseConfigFiles_VimCore (l: buffer_name ) == 0
273- let b: editorconfig_applied = 1
273+ call setbufvar ( ' % ' , ' editorconfig_applied' , 1 )
274274 endif
275275 elseif s: editorconfig_core_mode == ? ' external_command'
276276 call s: UseConfigFiles_ExternalCommand (l: buffer_name )
277- let b: editorconfig_applied = 1
277+ call setbufvar ( ' % ' , ' editorconfig_applied' , 1 )
278278 else
279279 echohl Error |
280280 \ echo " Unknown EditorConfig Core: " .
0 commit comments