1 Star 0 Fork 0

mwmi/neovim-windows

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

使用 MSYS2 mingw64 编译 Neovim

安装依赖包

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-ninja mingw-w64-x86_64-diffutils mingw-w64-x86_64-cmake mingw-w64-x86_64-make

编译 Neovim

运行以下命令

MinGWBuild.bat

制作安装包

运行以下命令

MakeInstaller.bat

存在问题

编译完成后的 Neovim 运行一切正常,但是无法打开包含中文路径的文件(但使用官方编译的版本一切正常),原因未知。

所以安装包内提供的文件是MSVC版的neovim

一键安装包

注意:在安装neovim安装前必须保证安装好git!!!

本安装包仅供学习参考,请勿用于生产环境。

  1. 默认安装路径:D:\neovim 如果找不到则:C:\neovim
  2. 安装包内置了lazyvim, CascadiaCodeNF可以自己选择安装
  3. 安装包中内的所有插件和配置文件都集中在同一目录下,方便管理
  • 脚本:

图片0

  • 安装包:

图片1 图片2

  • 启动界面:

图片3 图片4

总结

本文介绍了如何使用 MSYS2 mingw64 编译 Neovim,并制作了一键安装包。

MIT License Copyright (c) 2025 mwmi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

使用mingw编译neovim 以及 neovim 的 windows 一键安装程序 展开 收起
MIT
取消

发行版 (8)

全部

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mwmi/neovim-windows.git
git@gitee.com:mwmi/neovim-windows.git
mwmi
neovim-windows
neovim-windows
master

搜索帮助