-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
Description
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
- Open a test file containing only one string "test"
- Try to disable the plugin using a command or variable
- Enter Insert mode, add some extra spaces at the end of the line and return to Normal mode
- Save the file by typing
: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
- OS: Windows 10
- Vim version: 8.2.5117
- Neovim version: 0.8.1
- Vim plugin manager: vim-plug
- Neovim (sources Vim config) plugin manager: packer.nvim
Minimal config "./.minimal_vimrc"
call plug#begin('~/AppData/Local/nvim/plugged')
Plug 'editorconfig/editorconfig-vim'
call plug#end()
"./.editorconfig" file
root = true
[*]
trim_trailing_whitespace = true
kevin61416, nyngwang and MeShootIn