rust.vim is the official Vim plugin from the Rust Lang Foundation team that adds support for Rust files in Vim and Neovim. It provides file-detection (so .rs files are recognised), syntax highlighting tuned for Rust’s syntax and macros, and supports formatting via rustfmt and other language-specific tooling. The plugin also integrates with other Vim tools and linters, helping you build a full Rust-editing workflow in Vim. Because Rust’s macro system and language features are more complex than many languages, rust.vim handles special tokens and highlights accordingly. Though it doesn’t itself provide full language-server (LSP) capabilities, it lays the foundation so you can plug in LSP or other completion/diagnostic plugins. Many Rust users say that rust.vim is a reliable baseline for making Vim feel like a competent Rust editor rather than a bare text editor.

Features

  • Recognize Rust source files and set filetype appropriately
  • Provide syntax highlighting tailored to Rust macros, generics, enums, etc
  • Support automatic formatting with rustfmt when saving files (configurable)
  • Integration points for tools and plugins such as Syntastic, ALE or others for diagnostics
  • Provide helpful key mappings or commands specific to Rust workflows (e.g., cargo commands)
  • Minimal dependencies and designed to work smoothly in Vim/Neovim environments

Project Samples

Project Activity

See All Activity >

Categories

Code Editors

License

Apache License V2.0

Follow rust.vim

rust.vim Web Site

Other Useful Business Software
Agentic AI SRE built for Engineering and DevOps teams. Icon
Agentic AI SRE built for Engineering and DevOps teams.

No More Time Lost to Troubleshooting

NeuBird AI's agentic AI SRE delivers autonomous incident resolution, helping team cut MTTR up to 90% and reclaim engineering hours lost to troubleshooting.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of rust.vim!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Code Editors

Registered

2025-10-14