2

「VIM」基于项目的 VIM 配置

 2 years ago
source link: https://hiberabyss.github.io/2018/02/28/vim-project-configuration/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

「VIM」基于项目的 VIM 配置

Feb 28, 2018 | Vim | 阅读 | 251 字 | 1 分钟
2 条评论

有时在特定的项目中我们需要有特定的 VIM 配置, 这些配置和全局配置是不一致的 或者这个配置是只在这个项目中才能生效的, 我们可以借助插件 PorjectConfig 来实现 Per Project 的 VIM 配置.

利用 vim-plug 安装:

Plug 'https://github.com/hiberabyss/ProjectConfig'

我们便可直接调用 VIM 命令 ProjectConfig 来添加当前项目的配置:

ProjectConfig 插件会基于 .git .hg 等特殊文件夹来识别当前项目的根目录, 再在这些文件夹内 保存 VIM 配置文件 project_config , 当 VIM 启动时如果检查到这个文件的存在, 便会自动加载它.

d45e4df1d7847c80959b7def2b01e787?d=wavatar&v=1.4.18
hbliu Chrome 65.0.3325.146 macOS 10.13.3

@张大妈工资计算器 欢迎多提改进意见呀!

a5b0dd01c35ccce7323dee565e8fdcf3?d=wavatar&v=1.4.18
张大妈工资计算器 Chrome 64.0.3282.186 macOS 10.12.6

不错 收藏了

Powered By Valine
v1.4.18

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK