Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Dart
  3. Vim Plugin

Vim Plugin

BSD-3-ClauseVim Script

A Vim plugin providing filetype detection, syntax highlighting, and indentation for Dart code.

GitHubGitHub
653 stars52 forks0 contributors

What is Vim Plugin?

dart-vim-plugin is a Vim plugin that provides filetype detection, syntax highlighting, and indentation support for the Dart programming language. It solves the problem of lacking basic language support for Dart in the Vim editor, making it easier for developers to write and format Dart code directly within Vim.

Target Audience

Vim users who write Dart code, including developers working on Dart or Flutter projects who prefer Vim as their primary editor.

Value Proposition

Developers choose this plugin for its simplicity, reliability, and seamless integration with Dart's tooling, such as the `dart format` command, without the overhead of a full IDE. It focuses on essential editing features while being configurable to match Dart's style guide.

Overview

Syntax highlighting for Dart in Vim

Use Cases

Best For

  • Adding basic Dart language support to Vim
  • Formatting Dart code with the built-in `:DartFmt` command
  • Configuring Dart-specific indentation and syntax highlighting in Vim
  • Writing Dart or Flutter code in a lightweight editor environment
  • Integrating Dart editing with Vim's native package management
  • Customizing syntax highlighting for Dart's unique features like HTML in strings

Not Ideal For

  • Developers seeking integrated auto-completion and real-time diagnostics without additional LSP plugins
  • Projects where exact indentation parity with `dart format` is critical, especially in Flutter code with trailing commas
  • Users who prefer a single, all-in-one Dart plugin for Vim that bundles core and advanced editing capabilities

Pros & Cons

Pros

Automatic File Detection

Detects Dart files and applies appropriate settings automatically, eliminating manual configuration for filetype recognition as highlighted in the README's key features.

Seamless Code Formatting

Integrates Dart's formatter via the :DartFmt command with auto-formatting on save options, ensuring consistent style enforcement without external tools.

Customizable Syntax Highlighting

Allows enabling HTML syntax within Dart strings and disabling specific highlight groups, offering flexibility tailored to different coding needs as per the configuration section.

Dart Style Guide Support

Configurable to match Dart's official style guide, such as 2-space indentation, through simple plugin variables like g:dart_style_guide for alignment with best practices.

Cons

Indentation Inconsistencies

Does not fully replicate `dart format`'s indentation behavior, particularly with trailing commas in function arguments, which the FAQ admits can disrupt Flutter widget code formatting.

No Built-in Language Intelligence

Lacks features like auto-complete and diagnostics, requiring separate setup of LSP plugins such as vim-lsc for a full editing experience, as stated in the philosophy section.

Modular Setup Overhead

Users must install and configure additional plugins for advanced capabilities, adding complexity compared to all-in-one solutions, with the README directing to external resources for LSP integration.

Frequently Asked Questions

Quick Stats

Stars653
Forks52
Contributors0
Open Issues6
Last commit1 month ago
CreatedSince 2012

Tags

#dart#filetype-detection#code-editing#syntax-highlighting#text-editor#indentation#vim-plugin

Built With

V
Vimscript
V
Vim

Included in

Dart2.5k
Auto-fetched 1 day ago

Related Projects

Sublime Text PackageSublime Text Package

Sublime Text 3 Dart Package

Stars262
Forks44
Last commit3 years ago
Atom PluginAtom Plugin

Dart support for Atom

Stars0
Forks0
Last commit
DartPadDartPad

DartPad is an open-source tool that lets you play with the Dart language in any modern browser

Stars0
Forks0
Last commit
VSCode PluginVSCode Plugin

Dart support for Visual Studio Code

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub