Where is vimrc or vim profile for github's mingw32 shell on a Windows machine?

后端 未结 1 2001
南笙
南笙 2020-12-16 12:43

Cygwin has a home directory where I can store a .vimrc file to set up syntax highlighting. I know on linux machines this file is usually in a home directory and that it can

相关标签:
1条回答
  • 2020-12-16 13:34

    Git bash uses MSYSGIT, which comes with its own Vim . One way to look it up -

    In your git bash type

    $ type vim
    

    it will tell you which vim executable is used. In my machine it points to

    /bin/vim

    if you type

    vim --version, it spits out a lot of environment.

    pipe it to a grep, like this

    vim --version | grep vimrc and this will tell you the location(s) where this instance of vim will look for vimrc.

    0 讨论(0)
提交回复
热议问题