- Notifications
You must be signed in to change notification settings - Fork1
Dart syntax files for Vim 8.1 and later
License
pr3d4t0r/dart-vim-syntax
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Dart is an object-oriented, typed, class defined, garbage collected languageused for developing mobile, desktop, web, and back-end applications. Dart usesa C-like syntax derived from C, Java, and JavaScript, with features adoptedfrom Smalltalk, Python, Ruby, and others.
More information about the language and its development environment at theofficialDart Programming Language website.
dart.vim syntax detects and highlights Dart statements, reserved words,type declarations, storage classes, conditionals, loops, interpolated values,and comments. There is no support for idioms from Flutter or any other Dartframework.
The installation procedure described here are only required if the syntaxdetection and highlighting from this project have not been merged into the Vimpublic distribution.
Simple requirements:
- Dart syntax file(s) for Vim 8.1 and later
$HOME/.vimmust exist for local installation
Recommended:
Have Git available for automatic installation / updates to the$HOME/.vimusing thedart4vim command, included with this distribution.
End-user installation is only required until the Vim team approves merging thisDart syntax project into the main syntax files. Dart syntax highlightingproject maintainers also require manual file handling. This process installsthe files in$HOME/.vim and Dart syntax highlight will be available on anyVim / MacVim / gVim that the user runs.
- Exit Vim, MacVim, gVim - all Vim instances associated with your user
- Execute from the console:
curl -s https://raw.githubusercontent.com/pr3d4t0r/dart-vim-syntax/master/dart4vim | sh -s install - Open
vim example.dartto validate
- Exit Vim, MacVim, gVim - all Vim instances associated with your user
- Download the
dart4vimbash script - Run the
./dart4vim installscript - Open
vim example.dartto validate
- Exit Vim, MacVim, gVim - all Vim instances associated with your user
- Clone the Dart syntax repository:
git clone https://github.com/pr3d4t0r/dart-vim-syntax.git dart-vim - Remove any old Dart syntax files already installed in
$HOME/.vim./dart4vim remove - Select the Git branch from whence to install the syntax files
- Install from the project working directory:
./dart4vim quick - Open
vim example.dartto validate
- Exit Vim, MacVim, gVim - all Vim instances associated with your user
- Clone the Dart syntax repository:
git clone https://github.com/pr3d4t0r/dart-vim-syntax.git dart-vim - Copy the syntax file to the local environment:
cp dart-vim/syntax/dart.vim ~/.vim/syntax - Then the file detection file:
cp dart-vim/ftdetect/dart.vim ~/.vim/ftdetect - And the documentation:
cp dart-vim/doc/dart.vim ~/.vim/doc - Open
vim example.dartto validate
Support: Eugene Ciurana, <dart.syntax AT cime.net>,https://ciurana.eu/pgp orhttps://keybase.io/pr3d4t0r
Updates will be available through this repository and submitted for review tothe Vim team in accordance tohttps://github.com/vim/vim/blob/master/contributing.md
Vim is Charityware. dart.vim syntax is Charityware.
© Copyright 2019 by Eugene Ciurana / pr3d4t0r. Licensed under thestandard VIM LICENSE - Vim command:help uganda.txt for details.
About
Dart syntax files for Vim 8.1 and later
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.