I get that you probably close issues like these thousands of times per day, but I don't know where else to ask for help. I have a .editorconfig file that looks like this
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
# Tab indentation (no size specified)
# overrides previous *
[Makefile]
indent_style = tab
[*.js]
indent_size = 2
Basically a copy/paste from the website with a personal touch just for testing. This file lies somewhere in a folder on my system and also there's a hardlink in ~. After creating the file, I did
to unpack the plugin. I also added filetype plugin on to my ~/.vimrc and I was expecting that opening a .js file would indent with 2 spaces (when creating a function or an indented block) but that was not the case, since a hard tab was inserted instead.
this is on an Arch Linux box, but I also have a fedora one (with -python and +python3/dyn), another one is an openSUSE with +python/dyn and +python3/dyn, a Mac, a couple of Ubuntu servers, etc... My goal is to have a configuration file that "just works" across all of my systems without having to install/reinstall/compile vim ad hoc. The README.md file of this repo says:
No external editorconfig core library is required
Previous versions of this plugin also required a Python "core". The core included the code to parse .editorconfig files. This plugin includes the core, so you don't need to download the core separately.
which "probably" means that I don't have to worry about my vim being compiled or not with +python, which is what I want. But also, the vim plugin page (linked on the README.md) says:
install details
If your Vim is compiled with +python feature (this is usually true on most Linux distributions), the most simple way to install this plugin is to download the archive and extract it into your Vim runtime directory.
from which stems that +python is required to install by cloning the repo inside ~/.vim and contradicts what I (wanted to) understood from the README.md quote.
My goal is to have configuration file ready to be cloned/hardlinked and that the plugin is installed the minimal amount of steps (compiling or reinstalling vim would be then out of the question, since for some machines I don't even have admin rights and for the ones I do would create an heterogeneous installation process). Cloning the repo as I did above would be my ideal installation setup.
My questions are:
is my goal unreachable?
what do I need to make editor config work in my boxes with the minimal possible setup?
For anyone suffering as I was, the problem was that I cloned the repo directly on the root of start and it has to be on a folder insidestart. This fixed my problem and it allows me to do what I asked
I get that you probably close issues like these thousands of times per day, but I don't know where else to ask for help. I have a
.editorconfig
file that looks like thisBasically a copy/paste from the website with a personal touch just for testing. This file lies somewhere in a folder on my system and also there's a hardlink in
~
. After creating the file, I didto unpack the plugin. I also added
filetype plugin on
to my~/.vimrc
and I was expecting that opening a.js
file would indent with 2 spaces (when creating a function or an indented block) but that was not the case, since a hard tab was inserted instead.vim --version
saysthis is on an Arch Linux box, but I also have a fedora one (with
-python
and+python3/dyn
), another one is an openSUSE with+python/dyn
and+python3/dyn
, a Mac, a couple of Ubuntu servers, etc... My goal is to have a configuration file that "just works" across all of my systems without having to install/reinstall/compilevim
ad hoc. TheREADME.md
file of this repo says:which "probably" means that I don't have to worry about my
vim
being compiled or not with+python
, which is what I want. But also, thevim
plugin page (linked on theREADME.md
) says:from which stems that
+python
is required to install by cloning the repo inside~/.vim
and contradicts what I (wanted to) understood from theREADME.md
quote.My goal is to have configuration file ready to be cloned/hardlinked and that the plugin is installed the minimal amount of steps (compiling or reinstalling
vim
would be then out of the question, since for some machines I don't even have admin rights and for the ones I do would create an heterogeneous installation process). Cloning the repo as I did above would be my ideal installation setup.My questions are:
Thanks in advance