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
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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