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
The Most Powerful Software Platform for EHSQ and ESG Management Icon
The Most Powerful Software Platform for EHSQ and ESG Management

Addresses the needs of small businesses and large global organizations with thousands of users in multiple locations.

Choose from a complete set of software solutions across EHSQ that address all aspects of top performing Environmental, Health and Safety, and Quality management programs.
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