Rust开发Vim配置如何一步步成为?

摘要:参考 https:zhuanlan.zhihu.comp675491529 https:github.comrust-langrust.vimtreemaster?tab=readme-ov-file#pathogen
参考 https://zhuanlan.zhihu.com/p/675491529 https://github.com/rust-lang/rust.vim/tree/master?tab=readme-ov-file#pathogen 配置 我的vim是用pathogen来管理插件,下面是配置方法: 下载插件 git clone --depth=1 https://github.com/rust-lang/rust.vim.git ~/.vim/bundle/rust.vim 如果无法访问github,可以把上面的链接换成https://gitee.com/pengdonglin137/rust.vim 配置插件 在.vimrc中添加下的配置: let g:rustfmt_autosave = 1 " 保存时自动运行 :RustFmt 格式化代码 let g:rustfmt_command = "rustfmt" " 自定义格式化命令