如何在 Windows 中为 Vim 获得类似 fmt 的功能? [英] How do I get fmt-like functionality for Vim in Windows?

查看:29
本文介绍了如何在 Windows 中为 Vim 获得类似 fmt 的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现 fmt 对于 Vim 格式化代码注释非常有用.不幸的是,我现在在 Windows 上工作并且 fmt 不可用.有没有办法在 Windows 中获得类似的功能?

I've found fmt to be extremely useful with Vim for formatting code comments. Unfortunately, I'm now working on Windows and fmt is not available. Is there a way to get similar functionality in Windows?

推荐答案

我使用 GnuWin32.您可以只安装 CoreUtils 包 来获取 fmt.确保编辑环境的 PATH 变量以指向 GnuWin32 的 bin 目录.

I use GnuWin32. You can install just the CoreUtils package to get fmt. Make sure you edit your environment's PATH variable to point to GnuWin32's bin directory.

这篇关于如何在 Windows 中为 Vim 获得类似 fmt 的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆