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

You Might Also Like
Cloud data warehouse to power your data-driven innovation Icon
Cloud data warehouse to power your data-driven innovation

BigQuery is a serverless and cost-effective enterprise data warehouse that works across clouds and scales with your data.

BigQuery Studio provides a single, unified interface for all data practitioners of various coding skills to simplify analytics workflows from data ingestion and preparation to data exploration and visualization to ML model creation and use. It also allows you to use simple SQL to access Vertex AI foundational models directly inside BigQuery for text processing tasks, such as sentiment analysis, entity extraction, and many more without having to deal with specialized models.
Try for 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