Coder Social home page Coder Social logo

Comments (2)

saccarosium avatar saccarosium commented on September 22, 2024

XDG environment variables are a Linux spefic. Although on MacOS in the terminal they are use, due to be UNIX . On windows there are other sets of guidelines that should be followed.

from vim.

eldorel avatar eldorel commented on September 22, 2024

XDG environment variables are a Linux spefic. Although on MacOS in the terminal they are use, due to be UNIX . On windows there are other sets of guidelines that should be followed.

Environment variables are trivial to add on all OS's.

Part of why I made the request is because I am using the XDG variables on several windows 10 and 11 systems to configure other cross-platform software, and it was delightfully easy to do.

Then I installed vim on my new laptop, and had to think about where I needed to place all of the different config files so that it works the same way no matter what terminal/environment I execute from.

On the plus side, I found out that setting XDG_CONFIG_HOME in the windows user environment also makes that variable visible from WSL/Cygwin/Wezterm/Powershell/etc...

So now I just have a handful of identical single line .vimrc/_vimrc files with a single 'source' directive that points to the actual config file.

source $XDG_CONFIG_HOME\vim\vimrc

from vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.