这是indexloc提供的服务,不要输入任何密码
Skip to content

Can't disable plugin #202

@MeShootIn

Description

@MeShootIn

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

  1. Open a test file containing only one string "test"
  2. Try to disable the plugin using a command or variable
  3. Enter Insert mode, add some extra spaces at the end of the line and return to Normal mode
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions