Open MeShootIn opened 1 year ago
Confirmed; thanks for reporting! :EditorConfigDisable
does not clear the autocmds in all the groups, notably editorconfig_trim_trailing_whitespace
.
:autocmd editorconfig_trim_trailing_whitespace
--- Autocommands ---
editorconfig_trim_trailing_whitespace BufWrite
<buffer=1>
call s:TrimTrailingWhitespace()
Hi All, any update on this issue?
Not from me --- sorry! PRs are always welcome, however :) .
Are you seeking to disable for only a selected buffer?
@xuhdev yes.
:help tabpagebuflist()
shows how to get a list of all buffers in all tabs:
let buflist = []
for i in range(tabpagenr('$'))
call extend(buflist, tabpagebuflist(i + 1))
endfor
Maybe useful for disabling autocmd in all the buffer?
Problem
Command
:EditorConfigDisable
, which although not present in the documentation, and setting (manually via Vim Command mode and via ".vimrc") buffer variable (:let b:EditorConfig_disable = 1
) don't disable plugin.Steps to reproduce
:w
And after that all extra spaces from the end of the line are removed, which indicates that the plugin is still working. I even tried to run Vim (
vim -u ./.minimal_vimrc ./test.txt
) and Neovim (nvim -u ./.minimal_vimrc ./test.txt
) with a minimum config (all files are below), but the plugin still wasn't disabled.My configuration
Minimal config "./.minimal_vimrc"
"./.editorconfig" file