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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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