A Vim plugin providing filetype detection, syntax highlighting, and indentation for Dart code.
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.
Vim users who write Dart code, including developers working on Dart or Flutter projects who prefer Vim as their primary editor.
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.
Syntax highlighting for Dart in Vim
Detects Dart files and applies appropriate settings automatically, eliminating manual configuration for filetype recognition as highlighted in the README's key features.
Integrates Dart's formatter via the :DartFmt command with auto-formatting on save options, ensuring consistent style enforcement without external tools.
Allows enabling HTML syntax within Dart strings and disabling specific highlight groups, offering flexibility tailored to different coding needs as per the configuration section.
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.
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.
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.
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.
Sublime Text 3 Dart Package
Dart support for Atom
DartPad is an open-source tool that lets you play with the Dart language in any modern browser
Dart support for Visual Studio Code
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.