editorconfig / editorconfig-vim

EditorConfig plugin for Vim
http://editorconfig.org
Other
3.13k stars 137 forks source link

Not working #181

Closed aemonge closed 3 years ago

aemonge commented 3 years ago

Hi, I don't see any changes being applied in vim 8.2 with any configuration of the .editorconfig file.

My version output is as follows:

Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl               +clientserver      +diff              +folding           +langmap           +mouse_dec         +num64             +reltime           +tag_binary        +toolbar           +writebackup
+arabic            +clipboard         +digraphs          -footer            +libcall           +mouse_gpm         +packages          +rightleft         -tag_old_static    +user_commands     +X11
+autocmd           +cmdline_compl     +dnd               +fork()            +linebreak         -mouse_jsbterm     +path_extra        -ruby              -tag_any_white     +vartabs           -xfontset
+autochdir         +cmdline_hist      -ebcdic            +gettext           +lispindent        +mouse_netterm     +perl              +scrollbind        +tcl               +vertsplit         +xim
-autoservername    +cmdline_info      +emacs_tags        -hangul_input      +listcmds          +mouse_sgr         +persistent_undo   +signs             +termguicolors     +virtualedit       +xpm
+balloon_eval      +comments          +eval              +iconv             +localmap          -mouse_sysmouse    +popupwin          +smartindent       +terminal          +visual            +xsmp_interact
+balloon_eval_term +conceal           +ex_extra          +insert_expand     +lua               +mouse_urxvt       +postscript        +sound             +terminfo          +visualextra       +xterm_clipboard
+browse            +cryptv            +extra_search      +ipv6              +menu              +mouse_xterm       +printer           +spell             +termresponse      +viminfo           -xterm_save
++builtin_terms    +cscope            -farsi             +job               +mksession         +multi_byte        +profile           +startuptime       +textobjects       +vreplace
+byte_offset       +cursorbind        +file_in_path      +jumplist          +modify_fname      +multi_lang        -python            +statusline        +textprop          +wildignore
+channel           +cursorshape       +find_in_path      +keymap            +mouse             -mzscheme          +python3           -sun_workshop      +timers            +wildmenu
+cindent           +dialog_con_gui    +float             +lambda            +mouseshape        +netbeans_intg     +quickfix          +syntax            +title             +windows
   system vimrc file: "$VIM/vimrc"

On my vimrc file installed by:

    Plug 'editorconfig/editorconfig-vim'
      let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
      let g:EditorConfig_verbose = 1

My local .editorconfig file is

# EditorConfig is awesome: https://EditorConfig.org
root = true
indent_style = space
indent_size  = 4
end_of_line = cr
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120

But whenever I edit a file at the same level of the .editorconfig path, the tabstop incists on 2

verbose set tabstop?
  tabstop=2

Finally :EditorConfigReload output

Applying EditorConfig vim_core on file "/home/aemonge/projects/cupo-couponing/package.json"
Options: {}

See no options where picked up

cxw42 commented 3 years ago

Sorry you're having trouble!

Much appreciated!

k-takata commented 3 years ago

My local .editorconfig file is

It looks that your .editorconfig is wrong. You should specify filename patterns using [ … ]. E.g.

root = true

[*]
indent_style = space
indent_size  = 4
...
aemonge commented 3 years ago

I knew it !!! I knew the "bug" / "error" had to be a silly thing that I simply missed !!!!

Ended @k-takata the [*] was missing and now is working super smoothly <3