How to load different .vimrc file for different working directory?

前端 未结 5 2107
陌清茗
陌清茗 2020-12-14 00:45

I have different option for each working directory. I don\'t want to set these options every time I work. I know I can append vimrc file for the op

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 01:27

    Another solution is EditorConfig. It sets coding styles for different projects or filetypes. It works with Vim, but it is editor agnostic, so you can use the .editorconfig file with other text editors (SublimeText2, Notepad++, Vim, Emacs, Textmate, Gedit) or IDE (idea-based IDE's, RubyMine, PHPStorm, Visual Studio).

提交回复
热议问题