windows - Git vim 编辑器配置
问题描述
我在 Windows 中工作,我使用 vim 之类的默认编辑器进行提交。我想配置 vim 以使用 Windows 文件格式 (CRLF) 保存提交
我该怎么办?git 的 vim 配置在哪里?
解决方案
git 提交消息插件是~/.vim/ftplugin/gitcommit.vim
. 设置这个:
setlocal fileformat=dos
见http://vimdoc.sourceforge.net/htmldoc/options.html#%27fileformat%27
推荐阅读
- openstack - 如何将快照转换为快照到 Openstack 中的图像?
- ios - 快速 2 列的表格布局
- python - 将多个绘图放置在特定坐标处的一个大轴上
- angular - 使用带角度的openlayers范围
- python - 使用颜色绘制条形图以表示第三维
- maven - 在 Spring 中找不到 Facebook 依赖项
- uwp - UWP 中的 GetWindowRect
- excel - 用于按笛卡尔积拆分行的 VBScript
- plugins - 只有在所有插件初始化后才运行 DrRacket 插件主体,错误:phase2:只能在阶段调用:'init-complete
- java - DateTimeFormat 给出与 SimpleDateformat 不同的结果